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

Function compareTypePredicatesIdentical

test/fixtures/snapshot/typescript.js:67358–67363  ·  view source on GitHub ↗
(source, target, compareTypes)

Source from the content-addressed store, hash-verified

67356 return result;
67357 }
67358 function compareTypePredicatesIdentical(source, target, compareTypes) {
67359 return !(source && target && typePredicateKindsMatch(source, target)) ? 0 /* Ternary.False */ :
67360 source.type === target.type ? -1 /* Ternary.True */ :
67361 source.type && target.type ? compareTypes(source.type, target.type) :
67362 0 /* Ternary.False */;
67363 }
67364 function literalTypesWithSameBaseType(types) {
67365 var commonBaseType;
67366 for (var _i = 0, types_13 = types; _i < types_13.length; _i++) {

Callers 1

Calls 1

typePredicateKindsMatchFunction · 0.85

Tested by

no test coverage detected