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

Function getNonUndefinedType

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

Source from the content-addressed store, hash-verified

55781 return !!(type.flags & 465829888 /* TypeFlags.Instantiable */) && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 32768 /* TypeFlags.Undefined */);
55782 }
55783 function getNonUndefinedType(type) {
55784 var typeOrConstraint = someType(type, isGenericTypeWithUndefinedConstraint) ? mapType(type, function (t) { return t.flags & 465829888 /* TypeFlags.Instantiable */ ? getBaseConstraintOrType(t) : t; }) : type;
55785 return getTypeWithFacts(typeOrConstraint, 524288 /* TypeFacts.NEUndefined */);
55786 }
55787 // Determine the control flow type associated with a destructuring declaration or assignment. The following
55788 // forms of destructuring are possible:
55789 // let { x } = obj; // BindingElement

Callers 2

getTypeWithDefaultFunction · 0.85

Calls 4

someTypeFunction · 0.85
mapTypeFunction · 0.85
getBaseConstraintOrTypeFunction · 0.85
getTypeWithFactsFunction · 0.85

Tested by

no test coverage detected