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

Function removeMissingOrUndefinedType

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

Source from the content-addressed store, hash-verified

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 }
67678 /**
67679 * Is source potentially coercible to target type under `==`.
67680 * Assumes that `source` is a constituent of a union, hence

Callers 3

getTypeOfMappedSymbolFunction · 0.85
getSpreadTypeFunction · 0.85
inferFromIndexTypesFunction · 0.85

Calls 2

removeTypeFunction · 0.85
getTypeWithFactsFunction · 0.85

Tested by

no test coverage detected