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

Function areAllOuterTypeParametersApplied

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

Source from the content-addressed store, hash-verified

57258 return type.resolvedBaseTypes = [reducedBaseType];
57259 }
57260 function areAllOuterTypeParametersApplied(type) {
57261 // An unapplied type parameter has its symbol still the same as the matching argument symbol.
57262 // Since parameters are applied outer-to-inner, only the last outer parameter needs to be checked.
57263 var outerTypeParameters = type.outerTypeParameters;
57264 if (outerTypeParameters) {
57265 var last_1 = outerTypeParameters.length - 1;
57266 var typeArguments = getTypeArguments(type);
57267 return outerTypeParameters[last_1].symbol !== typeArguments[last_1].symbol;
57268 }
57269 return true;
57270 }
57271 // A valid base type is `any`, an object type or intersection of object types.
57272 function isValidBaseType(type) {
57273 if (type.flags & 262144 /* TypeFlags.TypeParameter */) {

Callers 1

resolveBaseTypesOfClassFunction · 0.85

Calls 1

getTypeArgumentsFunction · 0.85

Tested by

no test coverage detected