MCPcopy Create free account
hub / github.com/nodejs/node / getCanonicalSignature

Function getCanonicalSignature

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

Source from the content-addressed store, hash-verified

59967 return instantiateSignature(signature, createTypeEraser(signature.typeParameters), /*eraseTypeParameters*/ true);
59968 }
59969 function getCanonicalSignature(signature) {
59970 return signature.typeParameters ?
59971 signature.canonicalSignatureCache || (signature.canonicalSignatureCache = createCanonicalSignature(signature)) :
59972 signature;
59973 }
59974 function createCanonicalSignature(signature) {
59975 // Create an instantiation of the signature where each unconstrained type parameter is replaced with
59976 // its original. When a generic class or interface is instantiated, each generic method in the class or

Callers 1

compareSignaturesRelatedFunction · 0.85

Calls 1

createCanonicalSignatureFunction · 0.85

Tested by

no test coverage detected