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

Function getCommonSubtype

test/fixtures/snapshot/typescript.js:67399–67401  ·  view source on GitHub ↗
(types)

Source from the content-addressed store, hash-verified

67397 }
67398 // Return the leftmost type for which no type to the right is a subtype.
67399 function getCommonSubtype(types) {
67400 return ts.reduceLeft(types, function (s, t) { return isTypeSubtypeOf(t, s) ? t : s; });
67401 }
67402 function isArrayType(type) {
67403 return !!(ts.getObjectFlags(type) & 4 /* ObjectFlags.Reference */) && (type.target === globalArrayType || type.target === globalReadonlyArrayType);
67404 }

Callers 1

Calls 1

isTypeSubtypeOfFunction · 0.85

Tested by

no test coverage detected