Skip to content

Commit 76102f8

Browse files
committed
Change FileReader.readAsText‘s 2nd argument name
Change from `label` to the more descriptive `encoding`[1]. [1]: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
1 parent 37277e8 commit 76102f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lib.dom.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5322,7 +5322,7 @@ interface FileReader extends EventTarget {
53225322
readAsArrayBuffer(blob: Blob): void;
53235323
readAsBinaryString(blob: Blob): void;
53245324
readAsDataURL(blob: Blob): void;
5325-
readAsText(blob: Blob, label?: string): void;
5325+
readAsText(blob: Blob, encoding?: string): void;
53265326
readonly DONE: number;
53275327
readonly EMPTY: number;
53285328
readonly LOADING: number;

0 commit comments

Comments
 (0)