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

Function getRestrictiveTypeParameter

test/fixtures/snapshot/typescript.js:63337–63341  ·  view source on GitHub ↗
(tp)

Source from the content-addressed store, hash-verified

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,
63340 tp.restrictiveInstantiation);
63341 }
63342 function cloneTypeParameter(typeParameter) {
63343 var result = createTypeParameter(typeParameter.symbol);
63344 result.target = typeParameter;

Callers 1

createTypeCheckerFunction · 0.85

Calls 1

createTypeParameterFunction · 0.85

Tested by

no test coverage detected