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

Function areTypesComparable

test/fixtures/snapshot/typescript.js:63874–63876  ·  view source on GitHub ↗
(type1, type2)

Source from the content-addressed store, hash-verified

63872 return isTypeRelatedTo(source, target, comparableRelation);
63873 }
63874 function areTypesComparable(type1, type2) {
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 }

Callers 2

narrowTypeByEqualityFunction · 0.85

Calls 1

isTypeComparableToFunction · 0.85

Tested by

no test coverage detected