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

Function representativeSignatures

packages/tools/jsdocs/src/Jsdocs.ts:2995–3009  ·  view source on GitHub ↗
(
  signatures: ReadonlyArray<ts.Signature>,
  checker: ts.TypeChecker,
  location: ts.Node
)

Source from the content-addressed store, hash-verified

2993}
2994
2995function representativeSignatures(
2996 signatures: ReadonlyArray<ts.Signature>,
2997 checker: ts.TypeChecker,
2998 location: ts.Node
2999): ReadonlyArray<ts.Signature> {
3000 const seen = new Set<string>()
3001 const out: Array<ts.Signature> = []
3002 for (const signature of signatures) {
3003 const key = signatureShapeKey(signature, checker, location)
3004 if (seen.has(key)) continue
3005 seen.add(key)
3006 out.push(signature)
3007 }
3008 return out
3009}
3010
3011function functionSignature(
3012 name: string,

Callers 1

functionSignatureFunction · 0.85

Calls 4

signatureShapeKeyFunction · 0.85
hasMethod · 0.65
addMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected