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

Function isTypeAssignableTo

test/fixtures/snapshot/typescript.js:63842–63844  ·  view source on GitHub ↗
(source, target)

Source from the content-addressed store, hash-verified

63840 return isTypeRelatedTo(source, target, subtypeRelation);
63841 }
63842 function isTypeAssignableTo(source, target) {
63843 return isTypeRelatedTo(source, target, assignableRelation);
63844 }
63845 // An object type S is considered to be derived from an object type T if
63846 // S is a union type and every constituent of S is derived from T,
63847 // T is a union type and S is derived from at least one constituent of T, or

Callers 15

getRestTypeFunction · 0.85
isApplicableIndexTypeFunction · 0.85
_loop_18Function · 0.85
instantiateTypeWorkerFunction · 0.85
reportRelationErrorFunction · 0.85
structuredTypeRelatedToFunction · 0.85
_loop_22Function · 0.85
isArrayLikeTypeFunction · 0.85

Calls 1

isTypeRelatedToFunction · 0.85

Tested by

no test coverage detected