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

Function isObjectLiteralType

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

Source from the content-addressed store, hash-verified

69107 return !!constraint && maybeTypeOfKind(constraint.flags & 16777216 /* TypeFlags.Conditional */ ? getDefaultConstraintOfConditionalType(constraint) : constraint, 131068 /* TypeFlags.Primitive */ | 4194304 /* TypeFlags.Index */ | 134217728 /* TypeFlags.TemplateLiteral */ | 268435456 /* TypeFlags.StringMapping */);
69108 }
69109 function isObjectLiteralType(type) {
69110 return !!(ts.getObjectFlags(type) & 128 /* ObjectFlags.ObjectLiteral */);
69111 }
69112 function isObjectOrArrayLiteralType(type) {
69113 return !!(ts.getObjectFlags(type) & (128 /* ObjectFlags.ObjectLiteral */ | 16384 /* ObjectFlags.ArrayLiteral */));
69114 }

Callers 11

isRelatedToFunction · 0.85
propertiesRelatedToFunction · 0.85
getSiblingsOfContextFunction · 0.85
getPropertiesOfContextFunction · 0.85
isPartiallyInferableTypeFunction · 0.85
tryGetValueFromTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected