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

Function isMappedTypeGenericIndexedAccess

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

Source from the content-addressed store, hash-verified

59118 return type;
59119 }
59120 function isMappedTypeGenericIndexedAccess(type) {
59121 var objectType;
59122 return !!(type.flags & 8388608 /* TypeFlags.IndexedAccess */ && ts.getObjectFlags(objectType = type.objectType) & 32 /* ObjectFlags.Mapped */ &&
59123 !isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
59124 !(getMappedTypeModifiers(objectType) & 8 /* MappedTypeModifiers.ExcludeOptional */) && !objectType.declaration.nameType);
59125 }
59126 /**
59127 * For a type parameter, return the base constraint of the type parameter. For the string, number,
59128 * boolean, and symbol primitive types, return the corresponding object types. Otherwise return the

Callers 3

computeBaseConstraintFunction · 0.85
structuredTypeRelatedToFunction · 0.85

Calls 3

isGenericMappedTypeFunction · 0.85
isGenericIndexTypeFunction · 0.85
getMappedTypeModifiersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…