You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "jackvial (via GitHub)" <gi...@apache.org> on 2024/09/21 16:54:14 UTC
[I] TypesScript type error in ts/builder/map.ts causes TypeScript compilation to fail [arrow]
jackvial opened a new issue, #44180:
URL: https://github.com/apache/arrow/issues/44180
### Describe the bug, including details regarding any error messages, version, and platform.
When I try to build my project with `"@apache-arrow/ts": "^17.0.0"` as a dependency I get the following error
```
node_modules/@apache-arrow/ts/builder/map.ts:37:25 - error TS2352: Conversion of type 'MapRow<K, V>' to type 'Map<K, V>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type 'MapRow<K, V>' is missing the following properties from type 'Map<K, V>': clear, delete, forEach, get, and 6 more.
37 const current = pending.get(index) as Map<K, V> | undefined;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in node_modules/@apache-arrow/ts/builder/map.ts:37
```
### Component(s)
JavaScript
--
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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org