trxcllnt commented on code in PR #256:
URL: https://github.com/apache/arrow-js/pull/256#discussion_r2294076340


##########
src/util/utf8.ts:
##########
@@ -17,7 +17,7 @@
 
 const decoder = new TextDecoder('utf-8');
 /** @ignore */
-export const decodeUtf8 = (buffer?: BufferSource) => decoder.decode(buffer);
+export const decodeUtf8 = (buffer?: Parameters<InstanceType<typeof 
TextDecoder>['decode']>[0]) => decoder.decode(buffer);

Review Comment:
   I think this is also an option?
   ```suggestion
   export const decodeUtf8 = decoder.decode.bind(decoder);
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to