From d0e8a97e4c84bcd74af90707ae8688fb4a3489c9 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Mon, 19 Oct 2020 21:31:11 +0200 Subject: [PATCH] Fixing type problem on AsyncIter --- meta.json | 2 +- package.json | 2 +- src/asynciter.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta.json b/meta.json index 9796d53..ad0efea 100644 --- a/meta.json +++ b/meta.json @@ -1,6 +1,6 @@ { "name": "utils", - "version": "2.2.15", + "version": "2.2.16", "description": "Some helpful utility classes and functions", "author": "Fabian Stamm ", "contributors": [], diff --git a/package.json b/package.json index e4576e2..f47aced 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/utils", - "version": "2.2.15", + "version": "2.2.16", "description": "Different Utilities, that are not worth own packages", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/asynciter.ts b/src/asynciter.ts index 3f6f11b..b7639c8 100644 --- a/src/asynciter.ts +++ b/src/asynciter.ts @@ -39,7 +39,7 @@ export default class AsyncIteratorFromCB implements AsyncIterable { this.#onClose.forEach((cb) => cb()); } - [Symbol.asyncIterator]() { + [Symbol.asyncIterator](): AsyncIterator { const queue: IAsyncIteratorMessage[] = []; const signal = new Signal(); this.#onData.subscribe((data) => {