trxcllnt commented on a change in pull request #8216:
URL: https://github.com/apache/arrow/pull/8216#discussion_r492262029



##########
File path: js/test/unit/ipc/helpers.ts
##########
@@ -54,13 +54,13 @@ export abstract class ArrowIOTestHelper {
             await testFn(await this.writer(this.table).toUint8Array());
         };
     }
-    iterable(testFn: (iterable: Iterable<Uint8Array>) => void | Promise<void>) 
{
+    iterable(testFn: (iterable: Generator<Uint8Array>) => void | 
Promise<void>) {
         return async () => {
             expect.hasAssertions();
             await testFn(chunkedIterable(await 
this.writer(this.table).toUint8Array()));
         };
     }
-    asyncIterable(testFn: (asyncIterable: AsyncIterable<Uint8Array>) => void | 
Promise<void>) {
+    asyncIterable(testFn: (asyncIterable: AsyncGenerator<Uint8Array>) => void 
| Promise<void>) {

Review comment:
       This is a change in the TypeScript typings for generator functions. They 
didn't used to have a way to capture the error and return types of generator 
functions, but now they do. Most places we don't care about the error or return 
types, but have to use the Generator interfaces because TS 3.5+ requires it.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to