Divyanshu-s13 opened a new pull request, #373:
URL: https://github.com/apache/arrow-js/pull/373

   What's Changed
   Fixed TS2352 type conversion error in MapBuilder.setValue() that occurs with 
TypeScript 5.6+ due to stricter type checking.
   
   Changes
   Updated type assertion in [map.ts] to use intermediate unknown cast (as 
unknown as MapValue<K, V>) to satisfy TypeScript 5.6+ stricter type narrowing
   Removed unnecessary type assertion on pending.get(index) since the type is 
already inferred correctly
   Why
   TypeScript 5.6 introduced stricter type conversion rules, causing TS2352 
errors when directly casting between incompatible types. The as unknown as T 
pattern is the recommended approach for these scenarios.
   
   This is a non-breaking change - it only affects compile-time behavior and 
has no runtime impact.
   closes #49 
   


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