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