Fixing type problem on AsyncIter
This commit is contained in:
parent
84ea29a210
commit
d0e8a97e4c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "utils",
|
||||
"version": "2.2.15",
|
||||
"version": "2.2.16",
|
||||
"description": "Some helpful utility classes and functions",
|
||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||
"contributors": [],
|
||||
|
@ -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",
|
||||
|
@ -39,7 +39,7 @@ export default class AsyncIteratorFromCB<T> implements AsyncIterable<T> {
|
||||
this.#onClose.forEach((cb) => cb());
|
||||
}
|
||||
|
||||
[Symbol.asyncIterator]() {
|
||||
[Symbol.asyncIterator](): AsyncIterator<T, undefined, any> {
|
||||
const queue: IAsyncIteratorMessage<T>[] = [];
|
||||
const signal = new Signal();
|
||||
this.#onData.subscribe((data) => {
|
||||
|
Loading…
Reference in New Issue
Block a user