Converting AsyncIterableIterator to Array within Effect Type
Hello! I have a pipe that resolves to a
The following code works, but the return type is
The docs had some examples where
Apologies if that was a bad explanation, I'm still trying to wrap my head around Effect.
AsyncIterableIterator at a certain point, and I'm trying to turn that iterator into a simple array. I have a function that you can pass an AsyncIterableIterator to, and it returns a Promise that resolves to an array of the items.The following code works, but the return type is
Promise<(FileSystemDirectoryHandle | FileSystemFileHandle)[]> instead of just (FileSystemDirectoryHandle | FileSystemFileHandle)[]:The docs had some examples where
Promises were involved but didn't appear in the type signature, which is what I'm trying to do here, but I don't know how to pull it off.Apologies if that was a bad explanation, I'm still trying to wrap my head around Effect.
