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

Function forEachType

test/fixtures/snapshot/typescript.js:69875–69877  ·  view source on GitHub ↗
(type, f)

Source from the content-addressed store, hash-verified

69873 return containsType(target.types, source);
69874 }
69875 function forEachType(type, f) {
69876 return type.flags & 1048576 /* TypeFlags.Union */ ? ts.forEach(type.types, f) : f(type);
69877 }
69878 function someType(type, f) {
69879 return type.flags & 1048576 /* TypeFlags.Union */ ? ts.some(type.types, f) : f(type);
69880 }

Callers 9

resolveMappedTypeMembersFunction · 0.85
addMemberForKeyTypeFunction · 0.85
_loop_14Function · 0.85
getSiblingsOfContextFunction · 0.85
_loop_23Function · 0.85
_loop_27Function · 0.85

Calls 2

forEachMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…