Skip to content

Commit

Permalink
@uppy/utils: fix types (#4212)
Browse files Browse the repository at this point in the history
This reverts commit a249e09.
  • Loading branch information
aduh95 committed Nov 15, 2022
1 parent c088933 commit b138e91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"types": [],
"lib": [
"dom",
"es2018",
"ES2021.Promise",
"ES2022.Error"
"es2018"
]
},
"angularCompilerOptions": {
Expand Down
2 changes: 2 additions & 0 deletions packages/@uppy/utils/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b138e91

Please sign in to comment.