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

Function getNonNullableTypeIfNeeded

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

Source from the content-addressed store, hash-verified

74472 return !!((strictNullChecks ? getFalsyFlags(type) : type.flags) & 98304 /* TypeFlags.Nullable */);
74473 }
74474 function getNonNullableTypeIfNeeded(type) {
74475 return isNullableType(type) ? getNonNullableType(type) : type;
74476 }
74477 function reportObjectPossiblyNullOrUndefinedError(node, flags) {
74478 error(node, flags & 32768 /* TypeFlags.Undefined */ ? flags & 65536 /* TypeFlags.Null */ ?
74479 ts.Diagnostics.Object_is_possibly_null_or_undefined :

Callers 3

getTypeAtFlowAssignmentFunction · 0.85
checkForInStatementFunction · 0.85

Calls 2

isNullableTypeFunction · 0.85
getNonNullableTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…