Skip to content

Commit 69c90bb

Browse files
committed
Revert "Rename FileReader.readAsText second parameter from 'label' to 'encoding' (#25797)"
This reverts commit eaf4f92.
1 parent 8459e52 commit 69c90bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/lib.dom.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5033,7 +5033,7 @@ interface FileReader extends EventTarget {
50335033
readAsArrayBuffer(blob: Blob): void;
50345034
readAsBinaryString(blob: Blob): void;
50355035
readAsDataURL(blob: Blob): void;
5036-
readAsText(blob: Blob, encoding?: string): void;
5036+
readAsText(blob: Blob, label?: string): void;
50375037
readonly DONE: number;
50385038
readonly EMPTY: number;
50395039
readonly LOADING: number;

lib/lib.webworker.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ interface FileReader extends EventTarget {
12171217
readAsArrayBuffer(blob: Blob): void;
12181218
readAsBinaryString(blob: Blob): void;
12191219
readAsDataURL(blob: Blob): void;
1220-
readAsText(blob: Blob, encoding?: string): void;
1220+
readAsText(blob: Blob, label?: string): void;
12211221
readonly DONE: number;
12221222
readonly EMPTY: number;
12231223
readonly LOADING: number;

0 commit comments

Comments
 (0)