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

Function getIndexTypeOfType

test/fixtures/snapshot/typescript.js:59498–59501  ·  view source on GitHub ↗
(type, keyType)

Source from the content-addressed store, hash-verified

59496 // Return the index type of the given kind in the given type. Creates synthetic union index types when necessary and
59497 // maps primitive types and type parameters are to their apparent types.
59498 function getIndexTypeOfType(type, keyType) {
59499 var _a;
59500 return (_a = getIndexInfoOfType(type, keyType)) === null || _a === void 0 ? void 0 : _a.type;
59501 }
59502 function getApplicableIndexInfos(type, keyType) {
59503 return getIndexInfosOfType(type).filter(function (info) { return isApplicableIndexType(keyType, info.keyType); });
59504 }

Callers 13

createTypeCheckerFunction · 0.85
_loop_11Function · 0.85
_loop_15Function · 0.85
structuredTypeRelatedToFunction · 0.85
checkArrayLiteralFunction · 0.85
getIntrinsicTagSymbolFunction · 0.85
_loop_28Function · 0.85

Calls 1

getIndexInfoOfTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…