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

Function checkTypeAssignableTo

test/fixtures/snapshot/typescript.js:63877–63879  ·  view source on GitHub ↗
(source, target, errorNode, headMessage, containingMessageChain, errorOutputObject)

Source from the content-addressed store, hash-verified

63875 return isTypeComparableTo(type1, type2) || isTypeComparableTo(type2, type1);
63876 }
63877 function checkTypeAssignableTo(source, target, errorNode, headMessage, containingMessageChain, errorOutputObject) {
63878 return checkTypeRelatedTo(source, target, assignableRelation, errorNode, headMessage, containingMessageChain, errorOutputObject);
63879 }
63880 /**
63881 * Like `checkTypeAssignableTo`, but if it would issue an error, instead performs structural comparisons of the types using the given expression node to
63882 * attempt to issue more specific errors on, for example, specific object literal properties or tuple members.

Callers 15

checkObjectLiteralFunction · 0.85
checkTypeArgumentsFunction · 0.85
checkTypeParameterFunction · 0.85
checkTypePredicateFunction · 0.85
checkMappedTypeFunction · 0.85
checkTemplateLiteralTypeFunction · 0.85

Calls 1

checkTypeRelatedToFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…