MCPcopy Create free account
hub / github.com/nodejs/node / isGenericTypeWithoutNullableConstraint

Function isGenericTypeWithoutNullableConstraint

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

Source from the content-addressed store, hash-verified

71498 return !!(type.flags & 465829888 /* TypeFlags.Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* TypeFlags.Nullable */ | 1048576 /* TypeFlags.Union */));
71499 }
71500 function isGenericTypeWithoutNullableConstraint(type) {
71501 return !!(type.flags & 465829888 /* TypeFlags.Instantiable */ && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304 /* TypeFlags.Nullable */));
71502 }
71503 function hasContextualTypeWithNoGenericTypes(node, checkMode) {
71504 // Computing the contextual type for a child of a JSX element involves resolving the type of the
71505 // element's tag name, so we exclude that here to avoid circularities.

Callers

nothing calls this directly

Calls 2

maybeTypeOfKindFunction · 0.85
getBaseConstraintOrTypeFunction · 0.85

Tested by

no test coverage detected