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

Function getTypeFromOptionalTypeNode

test/fixtures/snapshot/typescript.js:61108–61110  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

61106 return type.elementFlags.length - ts.findLastIndex(type.elementFlags, function (f) { return !(f & flags); }) - 1;
61107 }
61108 function getTypeFromOptionalTypeNode(node) {
61109 return addOptionality(getTypeFromTypeNode(node.type), /*isProperty*/ true);
61110 }
61111 function getTypeId(type) {
61112 return type.id;
61113 }

Callers 1

Calls 2

addOptionalityFunction · 0.85
getTypeFromTypeNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…