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

Function representativeSignatures

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

Source from the content-addressed store, hash-verified

2923}
2924
2925function representativeSignatures(
2926 signatures: ReadonlyArray<ts.Signature>,
2927 checker: ts.TypeChecker,
2928 location: ts.Node
2929): ReadonlyArray<ts.Signature> {
2930 const seen = new Set<string>()
2931 const out: Array<ts.Signature> = []
2932 for (const signature of signatures) {
2933 const key = signatureShapeKey(signature, checker, location)
2934 if (seen.has(key)) continue
2935 seen.add(key)
2936 out.push(signature)
2937 }
2938 return out
2939}
2940
2941function functionSignature(
2942 name: string,

Callers 1

functionSignatureFunction · 0.85

Calls 4

signatureShapeKeyFunction · 0.85
pushMethod · 0.80
addMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected