MCPcopy
hub / github.com/Effect-TS/effect / prettyDeclaration

Function prettyDeclaration

packages/printer/examples/main.ts:19–20  ·  view source on GitHub ↗
(name: string, types: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

17}
18
19const prettyDeclaration = (name: string, types: ReadonlyArray<string>): Doc.Doc<never> =>
20 Doc.catWithSpace(Doc.text(name), prettyTypes(types))
21
22const doc: Doc.Doc<never> = prettyDeclaration("example", ["Int", "Bool", "Char", "IO ()"])
23

Callers 1

main.tsFile · 0.85

Calls 2

prettyTypesFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected