MCPcopy Create free account
hub / github.com/nodejs/node / countTypes

Function countTypes

test/fixtures/snapshot/typescript.js:69918–69920  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

69916 return filterType(type, function (t) { return t !== targetType; });
69917 }
69918 function countTypes(type) {
69919 return type.flags & 1048576 /* TypeFlags.Union */ ? type.types.length : 1;
69920 }
69921 function mapType(type, mapper, noReductions) {
69922 if (type.flags & 131072 /* TypeFlags.Never */) {
69923 return type;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected