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

Function appendTypeMapping

test/fixtures/snapshot/typescript.js:63334–63336  ·  view source on GitHub ↗
(mapper, source, target)

Source from the content-addressed store, hash-verified

63332 return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(4 /* TypeMapKind.Merged */, makeUnaryTypeMapper(source, target), mapper);
63333 }
63334 function appendTypeMapping(mapper, source, target) {
63335 return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(4 /* TypeMapKind.Merged */, mapper, makeUnaryTypeMapper(source, target));
63336 }
63337 function getRestrictiveTypeParameter(tp) {
63338 return tp.constraint === unknownType ? tp : tp.restrictiveInstantiation || (tp.restrictiveInstantiation = createTypeParameter(tp.symbol),
63339 tp.restrictiveInstantiation.constraint = unknownType,

Callers 5

addMemberForKeyTypeFunction · 0.85
getTypeOfMappedSymbolFunction · 0.85
structuredTypeRelatedToFunction · 0.85

Calls 2

makeUnaryTypeMapperFunction · 0.85
makeCompositeTypeMapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…