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

Function getTypeWithoutSignatures

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

Source from the content-addressed store, hash-verified

63806 isContextSensitiveFunctionLikeDeclaration(func);
63807 }
63808 function getTypeWithoutSignatures(type) {
63809 if (type.flags & 524288 /* TypeFlags.Object */) {
63810 var resolved = resolveStructuredTypeMembers(type);
63811 if (resolved.constructSignatures.length || resolved.callSignatures.length) {
63812 var result = createObjectType(16 /* ObjectFlags.Anonymous */, type.symbol);
63813 result.members = resolved.members;
63814 result.properties = resolved.properties;
63815 result.callSignatures = ts.emptyArray;
63816 result.constructSignatures = ts.emptyArray;
63817 result.indexInfos = ts.emptyArray;
63818 return result;
63819 }
63820 }
63821 else if (type.flags & 2097152 /* TypeFlags.Intersection */) {
63822 return getIntersectionType(ts.map(type.types, getTypeWithoutSignatures));
63823 }
63824 return type;
63825 }
63826 // TYPE CHECKING
63827 function isTypeIdenticalTo(source, target) {
63828 return isTypeRelatedTo(source, target, identityRelation);

Callers 1

Calls 4

createObjectTypeFunction · 0.85
getIntersectionTypeFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…