We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cbf5a9 commit 802870bCopy full SHA for 802870b
src/FileReader.ts
@@ -1,19 +1,19 @@
1
import { readAs } from './readAs.ts'
2
3
export class FileReader extends globalThis.FileReader {
4
- readAsArrayBuffer(blob: Blob) {
+ readAsArrayBuffer(blob: Blob): Promise<ArrayBuffer> {
5
return readAs(this, blob, 'ArrayBuffer')
6
}
7
8
- readAsBinaryString(blob: Blob) {
+ readAsBinaryString(blob: Blob): Promise<string> {
9
return readAs(this, blob, 'BinaryString')
10
11
12
- readAsDataURL(blob: Blob) {
+ readAsDataURL(blob: Blob): Promise<string> {
13
return readAs(this, blob, 'DataURL')
14
15
16
- readAsText(blob: Blob, encoding?: string) {
+ readAsText(blob: Blob, encoding?: string): Promise<string> {
17
return readAs(this, blob, 'Text', encoding)
18
19
0 commit comments