[ 
https://issues.apache.org/jira/browse/ARROW-14933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dominik Moritz closed ARROW-14933.
----------------------------------

> [JS] apache-arrow does not compile with typescript when types are checked
> -------------------------------------------------------------------------
>
>                 Key: ARROW-14933
>                 URL: https://issues.apache.org/jira/browse/ARROW-14933
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 6.0.1
>         Environment: Node v16.6.0
> TypeScript v4.5.2
> Apache Arrow v6.0.1
>            Reporter: Fritz Lekschas
>            Priority: Major
>             Fix For: 7.0.0
>
>
> Similar to 
> [https://stackoverflow.com/questions/66956030/apache-arrow-does-not-compile-with-typescript]
> Apache Arrow v6.0 does not compile with TypeScript v4.5 when Apache Arrow's 
> types are checked (e.g., `"skipLibCheck": false`)
> When I import `import \{ Table } from '@apache-arrow/ts';`, I am getting 
> several errors like the following:
>  * node_modules/apache-arrow/util/buffer.d.ts:10:328 - error TS2304: Cannot 
> find name 'ReadableStreamReadResult'.
>  * node_modules/apache-arrow/Arrow.d.ts:86:540 - error TS2304: Cannot find 
> name 'ReadableStreamReadDoneResult'
>  * node_modules/apache-arrow/recordbatch.d.ts:24:22 - error TS2415: Class 
> 'RecordBatch<T>' incorrectly extends base class 'StructVector<T>'.
>  * node_modules/apache-arrow/io/interfaces.d.ts:61:18 - error TS2304: Cannot 
> find name 'PipeOptions'.
>  * ...
> I've created a repo that reproduces the errors: 
> [https://github.com/flekschas/apache-arrow-typescript]
> Are those error expected/known or does apache-arrow require a special 
> TypeScript config?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to