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

Function mapTypeWithAlias

test/fixtures/snapshot/typescript.js:69947–69951  ·  view source on GitHub ↗
(type, mapper, aliasSymbol, aliasTypeArguments)

Source from the content-addressed store, hash-verified

69945 return changed ? mappedTypes && getUnionType(mappedTypes, noReductions ? 0 /* UnionReduction.None */ : 1 /* UnionReduction.Literal */) : type;
69946 }
69947 function mapTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) {
69948 return type.flags & 1048576 /* TypeFlags.Union */ && aliasSymbol ?
69949 getUnionType(ts.map(type.types, mapper), 1 /* UnionReduction.Literal */, aliasSymbol, aliasTypeArguments) :
69950 mapType(type, mapper);
69951 }
69952 function extractTypesOfKind(type, kind) {
69953 return filterType(type, function (t) { return (t.flags & kind) !== 0; });
69954 }

Callers 2

instantiateMappedTypeFunction · 0.85

Calls 3

getUnionTypeFunction · 0.85
mapTypeFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…