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

Function displaySignature

packages/tools/jsdocs/src/Jsdocs.ts:2795–2797  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

2793}
2794
2795function displaySignature(text: string): string {
2796 return text.replace(/import\((?:"[^"]+"|'[^']+')\)\.([A-Za-z_$][A-Za-z0-9_$]*(?:\.[A-Za-z_$][A-Za-z0-9_$]*)*)/g, "$1")
2797}
2798
2799function parseableSignature(cwd: string, text: string): string | null {
2800 const signature = normalizeSignature(cwd, displaySignature(text))

Callers 1

parseableSignatureFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected