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

Function getTypeWithDefault

test/fixtures/snapshot/typescript.js:69684–69688  ·  view source on GitHub ↗
(type, defaultExpression)

Source from the content-addressed store, hash-verified

69682 return filterType(type, function (t) { return (getTypeFacts(t) & include) !== 0; });
69683 }
69684 function getTypeWithDefault(type, defaultExpression) {
69685 return defaultExpression ?
69686 getUnionType([getNonUndefinedType(type), getTypeOfExpression(defaultExpression)]) :
69687 type;
69688 }
69689 function getTypeOfDestructuredProperty(type, name) {
69690 var _a;
69691 var nameType = getLiteralTypeFromPropertyName(name);

Calls 3

getUnionTypeFunction · 0.85
getNonUndefinedTypeFunction · 0.85
getTypeOfExpressionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…