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

Function removeOptionality

test/fixtures/snapshot/typescript.js:127776–127780  ·  view source on GitHub ↗
(type, isOptionalExpression, isOptionalChain)

Source from the content-addressed store, hash-verified

127774 }
127775 ts.findPrecedingMatchingToken = findPrecedingMatchingToken;
127776 function removeOptionality(type, isOptionalExpression, isOptionalChain) {
127777 return isOptionalExpression ? type.getNonNullableType() :
127778 isOptionalChain ? type.getNonOptionalType() :
127779 type;
127780 }
127781 ts.removeOptionality = removeOptionality;
127782 function isPossiblyTypeArgumentPosition(token, sourceFile, checker) {
127783 var info = getPossibleTypeArgumentsInfo(token, sourceFile);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected