diff --git a/packages/@uppy/angular/projects/uppy/angular/tsconfig.lib.json b/packages/@uppy/angular/projects/uppy/angular/tsconfig.lib.json index 2190f2ea1e..fc75da3c07 100644 --- a/packages/@uppy/angular/projects/uppy/angular/tsconfig.lib.json +++ b/packages/@uppy/angular/projects/uppy/angular/tsconfig.lib.json @@ -8,9 +8,7 @@ "types": [], "lib": [ "dom", - "es2018", - "ES2021.Promise", - "ES2022.Error" + "es2018" ] }, "angularCompilerOptions": { diff --git a/packages/@uppy/utils/types/index.d.ts b/packages/@uppy/utils/types/index.d.ts index 450aeea6a4..01c6b4c141 100644 --- a/packages/@uppy/utils/types/index.d.ts +++ b/packages/@uppy/utils/types/index.d.ts @@ -248,6 +248,8 @@ declare module '@uppy/utils/lib/toArray' { } declare module '@uppy/utils/lib/AbortController' { + import type { ErrorOptions } from '@uppy/utils/lib/ErrorWithCause' + export const AbortController: typeof globalThis.AbortController export const AbortSignal: typeof globalThis.AbortSignal export function createAbortError(message?: string, options?: ErrorOptions): DOMException