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

Function isFunctionObjectType

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

Source from the content-addressed store, hash-verified

69581 return declaredType;
69582 }
69583 function isFunctionObjectType(type) {
69584 // We do a quick check for a "bind" property before performing the more expensive subtype
69585 // check. This gives us a quicker out in the common case where an object type is not a function.
69586 var resolved = resolveStructuredTypeMembers(type);
69587 return !!(resolved.callSignatures.length || resolved.constructSignatures.length ||
69588 resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType));
69589 }
69590 function getTypeFacts(type, ignoreObjects) {
69591 if (ignoreObjects === void 0) { ignoreObjects = false; }
69592 var flags = type.flags;

Callers 3

isTypeDerivedFromFunction · 0.85
getTypeFactsFunction · 0.85

Calls 3

isTypeSubtypeOfFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…