Skip to content

Commit

Permalink
chore: explicit return type
Browse files Browse the repository at this point in the history
  • Loading branch information
myrear committed Aug 22, 2023
1 parent 8cbf5a9 commit 802870b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FileReader.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { readAs } from './readAs.ts'

export class FileReader extends globalThis.FileReader {
readAsArrayBuffer(blob: Blob) {
readAsArrayBuffer(blob: Blob): Promise<ArrayBuffer> {
return readAs(this, blob, 'ArrayBuffer')
}

readAsBinaryString(blob: Blob) {
readAsBinaryString(blob: Blob): Promise<string> {
return readAs(this, blob, 'BinaryString')
}

readAsDataURL(blob: Blob) {
readAsDataURL(blob: Blob): Promise<string> {
return readAs(this, blob, 'DataURL')
}

readAsText(blob: Blob, encoding?: string) {
readAsText(blob: Blob, encoding?: string): Promise<string> {
return readAs(this, blob, 'Text', encoding)
}
}

0 comments on commit 802870b

Please sign in to comment.