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

Function getTupleBaseType

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

Source from the content-addressed store, hash-verified

57201 return type.resolvedBaseTypes;
57202 }
57203 function getTupleBaseType(type) {
57204 var elementTypes = ts.sameMap(type.typeParameters, function (t, i) { return type.elementFlags[i] & 8 /* ElementFlags.Variadic */ ? getIndexedAccessType(t, numberType) : t; });
57205 return createArrayType(getUnionType(elementTypes || ts.emptyArray), type.readonly);
57206 }
57207 function resolveBaseTypesOfClass(type) {
57208 type.resolvedBaseTypes = ts.resolvingEmptyArray;
57209 var baseConstructorType = getApparentType(getBaseConstructorTypeOfClass(type));

Callers 1

getBaseTypesFunction · 0.85

Calls 3

getIndexedAccessTypeFunction · 0.85
createArrayTypeFunction · 0.85
getUnionTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…