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

Function isValidSpreadType

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

Source from the content-addressed store, hash-verified

73725 }
73726 }
73727 function isValidSpreadType(type) {
73728 var t = removeDefinitelyFalsyTypes(mapType(type, getBaseConstraintOrType));
73729 return !!(t.flags & (1 /* TypeFlags.Any */ | 67108864 /* TypeFlags.NonPrimitive */ | 524288 /* TypeFlags.Object */ | 58982400 /* TypeFlags.InstantiableNonPrimitive */) ||
73730 t.flags & 3145728 /* TypeFlags.UnionOrIntersection */ && ts.every(t.types, isValidSpreadType));
73731 }
73732 function checkJsxSelfClosingElementDeferred(node) {
73733 checkJsxOpeningLikeElementOrOpeningFragment(node);
73734 }

Calls 3

mapTypeFunction · 0.85
everyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…