Skip to content

Commit 802870b

Browse files
committed
chore: explicit return type
1 parent 8cbf5a9 commit 802870b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/FileReader.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { readAs } from './readAs.ts'
22

33
export class FileReader extends globalThis.FileReader {
4-
readAsArrayBuffer(blob: Blob) {
4+
readAsArrayBuffer(blob: Blob): Promise<ArrayBuffer> {
55
return readAs(this, blob, 'ArrayBuffer')
66
}
77

8-
readAsBinaryString(blob: Blob) {
8+
readAsBinaryString(blob: Blob): Promise<string> {
99
return readAs(this, blob, 'BinaryString')
1010
}
1111

12-
readAsDataURL(blob: Blob) {
12+
readAsDataURL(blob: Blob): Promise<string> {
1313
return readAs(this, blob, 'DataURL')
1414
}
1515

16-
readAsText(blob: Blob, encoding?: string) {
16+
readAsText(blob: Blob, encoding?: string): Promise<string> {
1717
return readAs(this, blob, 'Text', encoding)
1818
}
1919
}

0 commit comments

Comments
 (0)