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

Function removeType

test/fixtures/snapshot/typescript.js:69915–69917  ·  view source on GitHub ↗
(type, targetType)

Source from the content-addressed store, hash-verified

69913 return type.flags & 131072 /* TypeFlags.Never */ || f(type) ? type : neverType;
69914 }
69915 function removeType(type, targetType) {
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 }

Callers 4

removeOptionalTypeMarkerFunction · 0.85
removeMissingTypeFunction · 0.85

Calls 1

filterTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…