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

Function prependTypeMapping

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

Source from the content-addressed store, hash-verified

63329 return mapper1 ? makeCompositeTypeMapper(4 /* TypeMapKind.Merged */, mapper1, mapper2) : mapper2;
63330 }
63331 function prependTypeMapping(source, target, mapper) {
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 }

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…