Skip to content

Commit f0cd534

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 f0cd534

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/lib.dom.d.ts

+1-1
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;

lib/lib.webworker.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ interface FileReader extends EventTarget {
950950
readAsArrayBuffer(blob: Blob): void;
951951
readAsBinaryString(blob: Blob): void;
952952
readAsDataURL(blob: Blob): void;
953-
readAsText(blob: Blob, label?: string): void;
953+
readAsText(blob: Blob, encoding?: string): void;
954954
readonly DONE: number;
955955
readonly EMPTY: number;
956956
readonly LOADING: number;
@@ -972,7 +972,7 @@ interface FileReaderSync {
972972
readAsArrayBuffer(blob: Blob): ArrayBuffer;
973973
readAsBinaryString(blob: Blob): string;
974974
readAsDataURL(blob: Blob): string;
975-
readAsText(blob: Blob, label?: string): string;
975+
readAsText(blob: Blob, encoding?: string): string;
976976
}
977977

978978
declare var FileReaderSync: {

0 commit comments

Comments
 (0)