fix deprecated warn

This commit is contained in:
DjDeveloperr 2021-03-19 17:24:48 +05:30
parent 9023606faa
commit 11fa1281cf
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ export class BaseManager<T, T2> {
const arr = (await this.array()) ?? []
const { readable, writable } = new TransformStream()
arr.forEach((el) => writable.getWriter().write(el))
yield* readable.getIterator()
yield* readable
}
async fetch(...args: unknown[]): Promise<T2 | undefined> {

View file

@ -44,7 +44,7 @@ export class BaseChildManager<T, T2> {
const arr = (await this.array()) ?? []
const { readable, writable } = new TransformStream()
arr.forEach((el: unknown) => writable.getWriter().write(el))
yield* readable.getIterator()
yield* readable
}
async fetch(...args: unknown[]): Promise<T2 | undefined> {