MCPcopy Index your code
hub / github.com/nodejs/node / getErasedSignature

Function getErasedSignature

test/fixtures/snapshot/typescript.js:59960–59964  ·  view source on GitHub ↗
(signature)

Source from the content-addressed store, hash-verified

59958 return createTypeMapper(signature.typeParameters, typeArguments);
59959 }
59960 function getErasedSignature(signature) {
59961 return signature.typeParameters ?
59962 signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) :
59963 signature;
59964 }
59965 function createErasedSignature(signature) {
59966 // Create an instantiation of the signature where all type arguments are the any type.
59967 return instantiateSignature(signature, createTypeEraser(signature.typeParameters), /*eraseTypeParameters*/ true);

Callers 4

signatureRelatedToFunction · 0.85
inferFromSignaturesFunction · 0.85
narrowTypeByInstanceofFunction · 0.85

Calls 1

createErasedSignatureFunction · 0.85

Tested by

no test coverage detected