Skip to content

Commit eaf4f92

Browse files
author
choz
committed
Rename FileReader.readAsText second parameter from 'label' to 'encoding' (#25797)
1 parent 4510149 commit eaf4f92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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, label?: string): void;
5036+
readAsText(blob: Blob, encoding?: 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, label?: string): void;
1220+
readAsText(blob: Blob, encoding?: string): void;
12211221
readonly DONE: number;
12221222
readonly EMPTY: number;
12231223
readonly LOADING: number;

0 commit comments

Comments
 (0)