@@ -4997,7 +4997,7 @@ namespace ts {
4997
4997
function getBaseTypes(type: InterfaceType): BaseType[] {
4998
4998
if (!type.resolvedBaseTypes) {
4999
4999
if (type.objectFlags & ObjectFlags.Tuple) {
5000
- type.resolvedBaseTypes = [createTypeFromGenericGlobalType(globalTupleBaseType, [getUnionType(type.typeParameters)])];
5000
+ type.resolvedBaseTypes = [createTypeFromGenericGlobalType(globalTupleBaseType || globalArrayType , [getUnionType(type.typeParameters)])];
5001
5001
}
5002
5002
else if (type.symbol.flags & (SymbolFlags.Class | SymbolFlags.Interface)) {
5003
5003
if (type.symbol.flags & SymbolFlags.Class) {
@@ -24511,8 +24511,8 @@ namespace ts {
24511
24511
autoArrayType = createArrayType(autoType);
24512
24512
24513
24513
// TODO: ReadonlyArray and TupleBase should always be available, but haven't been required previously
24514
- globalReadonlyArrayType = <GenericType>getGlobalType ("ReadonlyArray" as __String, /*arity*/ 1, /*reportErrors*/ true );
24515
- globalTupleBaseType = <GenericType>getGlobalType ("TupleBase" as __String, /*arity*/ 1, /*reportErrors*/ true );
24514
+ globalReadonlyArrayType = <GenericType>getGlobalTypeOrUndefined ("ReadonlyArray" as __String, /*arity*/ 1);
24515
+ globalTupleBaseType = <GenericType>getGlobalTypeOrUndefined ("TupleBase" as __String, /*arity*/ 1);
24516
24516
anyReadonlyArrayType = globalReadonlyArrayType ? createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : anyArrayType;
24517
24517
globalThisType = <GenericType>getGlobalTypeOrUndefined("ThisType" as __String, /*arity*/ 1);
24518
24518
}
0 commit comments