mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 22:38:02 +03:00
fix agta error
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Async Generator To Array
|
||||
*/
|
||||
export async function agta(ag: AsyncIterable<unknown>) {
|
||||
export async function agta(ag: AsyncIterable<unknown> | Iterable<unknown>) {
|
||||
const a = [];
|
||||
for await (const el of ag) {
|
||||
a.push(el);
|
||||
|
||||
Reference in New Issue
Block a user