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) => {