Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8394

[JS] Typescript compiler errors for arrow d.ts files, when using es2015-esm package

    XMLWordPrintableJSON

Details

    Description

      Attempting to use apache-arrow within a web application, but typescript compiler throws the following errors in some of arrow's .d.ts files

      import { Table } from "../node_modules/@apache-arrow/es2015-esm/Arrow";
      export class SomeClass {
      .
      .
      constructor()

      { const t = Table.from(''); }

      node_modules/@apache-arrow/es2015-esm/column.d.ts:14:22 - error TS2417: Class static side 'typeof Column' incorrectly extends base class static side 'typeof Chunked'. Types of property 'new' are incompatible.

      node_modules/@apache-arrow/es2015-esm/ipc/reader.d.ts:238:5 - error TS2717: Subsequent property declarations must have the same type. Property 'schema' must be of type 'Schema', but here has type 'Schema'.

      238 schema: Schema;

      node_modules/@apache-arrow/es2015-esm/recordbatch.d.ts:17:18 - error TS2430: Interface 'RecordBatch' incorrectly extends interface 'StructVector'. The types of 'slice(...).clone' are incompatible between these types.

      the tsconfig.json file looks like

      {
      "compilerOptions":

      { "target":"ES6", "outDir": "dist", "baseUrl": "src/" }

      ,
      "exclude": ["dist"],
      "include": ["src/*.ts"]
      }

      Attachments

        Issue Links

          Activity

            People

              paul.e.taylor Paul Taylor
              shyamalshukla Shyamal Shukla
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 40m
                  4h 40m