Skip to content

Commit

Permalink
fix: correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Oct 8, 2022
1 parent 45d678a commit 61a097a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions types/filereader.d.ts
Expand Up @@ -22,16 +22,16 @@ export declare class FileReader extends EventTarget {

readonly readyState: number

readonly result: string | ArrayBuffer
readonly result: string | ArrayBuffer | null

readonly error: DOMException
readonly error: DOMException | null

onloadstart? (this: FileReader, event: ProgressEvent): void
onprogress? (this: FileReader, event: ProgressEvent): void
onload? (this: FileReader, event: ProgressEvent): void
onabort? (this: FileReader, event: ProgressEvent): void
onerror? (this: FileReader, event: ProgressEvent): void
onloadend? (this: FileReader, event: ProgressEvent): void
onloadstart: null | ((this: FileReader, event: ProgressEvent) => void)
onprogress: null | ((this: FileReader, event: ProgressEvent) => void)
onload: null | ((this: FileReader, event: ProgressEvent) => void)
onabort: null | ((this: FileReader, event: ProgressEvent) => void)
onerror: null | ((this: FileReader, event: ProgressEvent) => void)
onloadend: null | ((this: FileReader, event: ProgressEvent) => void)
}

export interface ProgressEventInit extends EventInit {
Expand Down

0 comments on commit 61a097a

Please sign in to comment.