MCPcopy Create free account
hub / github.com/Effect-TS/effect / declaration

Function declaration

packages/effect/test/utils/schemaCodegen.ts:18–23  ·  view source on GitHub ↗
(module: Codegen.Module, name: string)

Source from the content-addressed store, hash-verified

16}
17
18export function declaration(module: Codegen.Module, name: string): ReadonlyArray<string> {
19 const output = module.finalize()
20 const entry = output.declarations.find(({ binding }) => output.names.get(binding) === name)
21 assert.isDefined(entry, "Missing declaration: " + name)
22 return entry!.fragments
23}
24
25export function assertSchemas(
26 module: Codegen.Module,

Callers 2

codegen.test.tsFile · 0.90

Calls 3

findMethod · 0.65
getMethod · 0.65
finalizeMethod · 0.45

Tested by

no test coverage detected