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

Function getTypeOfPropertyOrIndexSignature

test/fixtures/snapshot/typescript.js:55711–55714  ·  view source on GitHub ↗
(type, name)

Source from the content-addressed store, hash-verified

55709 return prop ? getTypeOfSymbol(prop) : undefined;
55710 }
55711 function getTypeOfPropertyOrIndexSignature(type, name) {
55712 var _a;
55713 return getTypeOfPropertyOfType(type, name) || ((_a = getApplicableIndexInfoForName(type, name)) === null || _a === void 0 ? void 0 : _a.type) || unknownType;
55714 }
55715 function isTypeAny(type) {
55716 return type && (type.flags & 1 /* TypeFlags.Any */) !== 0;
55717 }

Callers 1

narrowTypeByDiscriminantFunction · 0.85

Calls 2

getTypeOfPropertyOfTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…