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

Function isStringIndexSignatureOnlyType

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

Source from the content-addressed store, hash-verified

64513 type.symbol && type.symbol.flags & 2048 /* SymbolFlags.TypeLiteral */ && getMembersOfSymbol(type.symbol).size === 0));
64514 }
64515 function isStringIndexSignatureOnlyType(type) {
64516 return type.flags & 524288 /* TypeFlags.Object */ && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) ||
64517 type.flags & 3145728 /* TypeFlags.UnionOrIntersection */ && ts.every(type.types, isStringIndexSignatureOnlyType) ||
64518 false;
64519 }
64520 function isEnumTypeRelatedTo(sourceSymbol, targetSymbol, errorReporter) {
64521 if (sourceSymbol === targetSymbol) {
64522 return true;

Callers 1

Calls 5

isGenericMappedTypeFunction · 0.85
getPropertiesOfTypeFunction · 0.85
getIndexInfosOfTypeFunction · 0.85
getIndexInfoOfTypeFunction · 0.85
everyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…