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

Function getIndexTypeOrString

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

Source from the content-addressed store, hash-verified

61881 return extractTypeAlias ? getTypeAliasInstantiation(extractTypeAlias, [type, stringType]) : stringType;
61882 }
61883 function getIndexTypeOrString(type) {
61884 var indexType = getExtractStringType(getIndexType(type));
61885 return indexType.flags & 131072 /* TypeFlags.Never */ ? stringType : indexType;
61886 }
61887 function getTypeFromTypeOperatorNode(node) {
61888 var links = getNodeLinks(node);
61889 if (!links.resolvedType) {

Callers 1

checkForInStatementFunction · 0.85

Calls 2

getExtractStringTypeFunction · 0.85
getIndexTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…