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

Function createTypeMapper

test/fixtures/snapshot/typescript.js:63279–63281  ·  view source on GitHub ↗
(sources, targets)

Source from the content-addressed store, hash-verified

63277 return instantiateList(indexInfos, mapper, instantiateIndexInfo);
63278 }
63279 function createTypeMapper(sources, targets) {
63280 return sources.length === 1 ? makeUnaryTypeMapper(sources[0], targets ? targets[0] : anyType) : makeArrayTypeMapper(sources, targets);
63281 }
63282 function getMappedType(type, mapper) {
63283 switch (mapper.kind) {
63284 case 0 /* TypeMapKind.Simple */:

Callers 15

resolveObjectTypeMembersFunction · 0.85
replaceIndexedAccessFunction · 0.85
fillMissingTypeArgumentsFunction · 0.85
getBaseSignatureFunction · 0.85
_loop_18Function · 0.85
canTailRecurseFunction · 0.85

Calls 2

makeUnaryTypeMapperFunction · 0.85
makeArrayTypeMapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…