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

Function getSignaturesOfStructuredType

test/fixtures/snapshot/typescript.js:59430–59436  ·  view source on GitHub ↗
(type, kind)

Source from the content-addressed store, hash-verified

59428 return undefined;
59429 }
59430 function getSignaturesOfStructuredType(type, kind) {
59431 if (type.flags & 3670016 /* TypeFlags.StructuredType */) {
59432 var resolved = resolveStructuredTypeMembers(type);
59433 return kind === 0 /* SignatureKind.Call */ ? resolved.callSignatures : resolved.constructSignatures;
59434 }
59435 return ts.emptyArray;
59436 }
59437 /**
59438 * Return the signatures of the given kind in the given type. Creates synthetic union signatures when necessary and
59439 * maps primitive types and type parameters are to their apparent types.

Callers 3

resolveESModuleSymbolFunction · 0.85
getSignaturesOfTypeFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…