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

Function declarationNames

packages/effect/test/utils/schemaCodegen.ts:13–16  ·  view source on GitHub ↗
(module: Codegen.Module)

Source from the content-addressed store, hash-verified

11}
12
13export function declarationNames(module: Codegen.Module): ReadonlyArray<string> {
14 const output = module.finalize()
15 return output.declarations.map(({ binding }) => output.names.get(binding)!)
16}
17
18export function declaration(module: Codegen.Module, name: string): ReadonlyArray<string> {
19 const output = module.finalize()

Callers 3

referenceNamesFunction · 0.90
sanitizeFunction · 0.90

Calls 3

getMethod · 0.65
finalizeMethod · 0.45
mapMethod · 0.45

Tested by 2

referenceNamesFunction · 0.72
sanitizeFunction · 0.72