Skip to content

Commit

Permalink
fix(file): read methods can accept Blobs too
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Oct 12, 2016
1 parent 397a209 commit 276d61b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ export interface FileReader {
onabort: (evt: ProgressEvent) => void;

abort(): void;
readAsText(fe: File, encoding?: string): void;
readAsDataURL(fe: File): void;
readAsBinaryString(fe: File): void;
readAsArrayBuffer(fe: File): void;
readAsText(fe: File | Blob, encoding?: string): void;
readAsDataURL(fe: File | Blob): void;
readAsBinaryString(fe: File | Blob): void;
readAsArrayBuffer(fe: File | Blob): void;
}

declare var FileReader: {
Expand Down

0 comments on commit 276d61b

Please sign in to comment.