fix deprecated warn
This commit is contained in:
		
							parent
							
								
									9023606faa
								
							
						
					
					
						commit
						11fa1281cf
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -64,7 +64,7 @@ export class BaseManager<T, T2> { | ||||||
|     const arr = (await this.array()) ?? [] |     const arr = (await this.array()) ?? [] | ||||||
|     const { readable, writable } = new TransformStream() |     const { readable, writable } = new TransformStream() | ||||||
|     arr.forEach((el) => writable.getWriter().write(el)) |     arr.forEach((el) => writable.getWriter().write(el)) | ||||||
|     yield* readable.getIterator() |     yield* readable | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   async fetch(...args: unknown[]): Promise<T2 | undefined> { |   async fetch(...args: unknown[]): Promise<T2 | undefined> { | ||||||
|  |  | ||||||
|  | @ -44,7 +44,7 @@ export class BaseChildManager<T, T2> { | ||||||
|     const arr = (await this.array()) ?? [] |     const arr = (await this.array()) ?? [] | ||||||
|     const { readable, writable } = new TransformStream() |     const { readable, writable } = new TransformStream() | ||||||
|     arr.forEach((el: unknown) => writable.getWriter().write(el)) |     arr.forEach((el: unknown) => writable.getWriter().write(el)) | ||||||
|     yield* readable.getIterator() |     yield* readable | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   async fetch(...args: unknown[]): Promise<T2 | undefined> { |   async fetch(...args: unknown[]): Promise<T2 | undefined> { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue