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

Function containsMissingType

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

Source from the content-addressed store, hash-verified

67670 return exactOptionalPropertyTypes && isOptional ? removeType(type, missingType) : type;
67671 }
67672 function containsMissingType(type) {
67673 return exactOptionalPropertyTypes && (type === missingType || type.flags & 1048576 /* TypeFlags.Union */ && containsType(type.types, missingType));
67674 }
67675 function removeMissingOrUndefinedType(type) {
67676 return exactOptionalPropertyTypes ? removeType(type, missingType) : getTypeWithFacts(type, 524288 /* TypeFacts.NEUndefined */);
67677 }

Calls 1

containsTypeFunction · 0.85

Tested by

no test coverage detected