Skip to content

Commit 8e365f6

Browse files
committed
chore: update README.md
1 parent e4f71ad commit 8e365f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ This library provides 2 modules:
2929
### `readAs`
3030

3131
```ts
32-
const result: string = await readAs(reader, file, 'DataURL')
33-
const result: ArrayBuffer = await readAs(reader, file, 'ArrayBuffer')
32+
const dataUrl: string = await readAs(reader, file, 'DataURL')
33+
const arrayBuffer: ArrayBuffer = await readAs(reader, file, 'ArrayBuffer')
3434
```
3535

3636
### `FileReader`
3737

3838
```ts
39-
const result: string = await new FileReader().readAsDataURL(file)
40-
const result: ArrayBuffer = await new FileReader().readAsArrayBuffer(file)
39+
const dataUrl: string = await new FileReader().readAsDataURL(file)
40+
const arrayBuffer: ArrayBuffer = await new FileReader().readAsArrayBuffer(file)
4141
```

0 commit comments

Comments
 (0)