diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 6c5fcc36e4df1..b0c79d16e46e8 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6890,7 +6890,7 @@ namespace ts { return globalFunctionType; case "Array": case "array": - return !node.typeArguments || !node.typeArguments.length ? createArrayType(anyType) : undefined; + return !node.typeArguments || !node.typeArguments.length ? anyArrayType : undefined; case "Promise": case "promise": return !node.typeArguments || !node.typeArguments.length ? createPromiseType(anyType) : undefined;