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

Function createTypeEraser

test/fixtures/snapshot/typescript.js:63315–63317  ·  view source on GitHub ↗
(sources)

Source from the content-addressed store, hash-verified

63313 return { kind: kind, mapper1: mapper1, mapper2: mapper2 };
63314 }
63315 function createTypeEraser(sources) {
63316 return createTypeMapper(sources, /*targets*/ undefined);
63317 }
63318 /**
63319 * Maps forward-references to later types parameters to the empty object type.
63320 * This is used during inference when instantiating type parameter defaults.

Callers 2

createErasedSignatureFunction · 0.85
getBaseSignatureFunction · 0.85

Calls 1

createTypeMapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…