summaryrefslogtreecommitdiff
path: root/js/io.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/io.ts')
-rw-r--r--js/io.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/io.ts b/js/io.ts
index dd3d12a6d..0b59a0849 100644
--- a/js/io.ts
+++ b/js/io.ts
@@ -146,7 +146,7 @@ export function toAsyncIterator(r: Reader): AsyncIterableIterator<Uint8Array> {
const b = new Uint8Array(1024);
return {
- [Symbol.asyncIterator]() {
+ [Symbol.asyncIterator](): AsyncIterableIterator<Uint8Array> {
return this;
},