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

Function addMemberForKeyType

test/fixtures/snapshot/typescript.js:58559–58562  ·  view source on GitHub ↗
(keyType)

Source from the content-addressed store, hash-verified

58557 }
58558 setStructuredTypeMembers(type, members, ts.emptyArray, ts.emptyArray, indexInfos || ts.emptyArray);
58559 function addMemberForKeyType(keyType) {
58560 var propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType;
58561 forEachType(propNameType, function (t) { return addMemberForKeyTypeWorker(keyType, t); });
58562 }
58563 function addMemberForKeyTypeWorker(keyType, propNameType) {
58564 // If the current iteration type constituent is a string literal type, create a property.
58565 // Otherwise, for type string create a string index signature.

Callers

nothing calls this directly

Calls 5

instantiateTypeFunction · 0.85
appendTypeMappingFunction · 0.85
forEachTypeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…