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

Function getSingleCallSignature

test/fixtures/snapshot/typescript.js:75414–75416  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

75412 }
75413 // If type has a single call signature and no other members, return that signature. Otherwise, return undefined.
75414 function getSingleCallSignature(type) {
75415 return getSingleSignature(type, 0 /* SignatureKind.Call */, /*allowMembers*/ false);
75416 }
75417 function getSingleCallOrConstructSignature(type) {
75418 return getSingleSignature(type, 0 /* SignatureKind.Call */, /*allowMembers*/ false) ||
75419 getSingleSignature(type, 1 /* SignatureKind.Construct */, /*allowMembers*/ false);

Callers 7

getSignatureOfTypeTagFunction · 0.85
elaborateArrowFunctionFunction · 0.85
compareSignaturesRelatedFunction · 0.85
hasPropFunction · 0.85
inferTypeArgumentsFunction · 0.85

Calls 1

getSingleSignatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…