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

Function displayDeclarations

packages/tools/api-diff/src/Snapshot.ts:588–589  ·  view source on GitHub ↗
(nodes: ReadonlyArray<ts.Declaration>)

Source from the content-addressed store, hash-verified

586}
587
588const displayDeclarations = (nodes: ReadonlyArray<ts.Declaration>): string =>
589 nodes.map((node) => node.getText().replace(/\/\*\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").trim()).join("\n")
590
591const fingerprintDeclarations = (declarations: ReadonlyArray<DeclarationModel>): string => {
592 const normalize = (value: unknown, parent?: string): unknown => {

Callers 1

extractSnapshotFunction · 0.85

Calls 3

joinMethod · 0.80
mapMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected