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

Function isExcessPropertyCheckTarget

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

Source from the content-addressed store, hash-verified

74290 return false;
74291 }
74292 function isExcessPropertyCheckTarget(type) {
74293 return !!(type.flags & 524288 /* TypeFlags.Object */ && !(ts.getObjectFlags(type) & 512 /* ObjectFlags.ObjectLiteralPatternWithComputedProperties */) ||
74294 type.flags & 67108864 /* TypeFlags.NonPrimitive */ ||
74295 type.flags & 1048576 /* TypeFlags.Union */ && ts.some(type.types, isExcessPropertyCheckTarget) ||
74296 type.flags & 2097152 /* TypeFlags.Intersection */ && ts.every(type.types, isExcessPropertyCheckTarget));
74297 }
74298 function checkJsxExpression(node, checkMode) {
74299 checkGrammarJsxExpression(node);
74300 if (node.expression) {

Callers 2

hasExcessPropertiesFunction · 0.85
isKnownPropertyFunction · 0.85

Calls 2

someMethod · 0.80
everyMethod · 0.80

Tested by

no test coverage detected