MCPcopy Index your code
hub / github.com/anomalyco/opencode / emitEffectImported

Function emitEffectImported

packages/httpapi-codegen/src/index.ts:225–236  ·  view source on GitHub ↗
(
  contract: Contract,
  options:
    | { readonly module: string; readonly api: string }
    | { readonly module: string; readonly group: string }
    | { readonly module: string; readonly endpoints: Readonly<Record<string, string>> },
)

Source from the content-addressed store, hash-verified

223}
224
225export function emitEffectImported(
226 contract: Contract,
227 options:
228 | { readonly module: string; readonly api: string }
229 | { readonly module: string; readonly group: string }
230 | { readonly module: string; readonly endpoints: Readonly<Record<string, string>> },
231): Output {
232 return {
233 operations: operations(contract.groups),
234 files: renderImportedEffectFiles(contract.groups, options),
235 }
236}
237
238export function emitPromise(
239 contract: Contract,

Callers 2

build.tsFile · 0.90
generate.test.tsFile · 0.90

Calls 2

operationsFunction · 0.85

Tested by

no test coverage detected