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

ts-node throws type error running `bin/arrow2csv.js`

    XMLWordPrintableJSON

Details

    Description

      ts-node is being too strict, throws this (inaccurate) error JIT'ing the TS source:

      $ cat test/data/cpp/stream/simple.arrow | ./bin/arrow2csv.js 
      
      /home/ptaylor/dev/arrow/js/node_modules/ts-node/src/index.ts:228
          return new TSError(diagnosticText, diagnosticCodes)
                 ^
      TSError: тип Unable to compile TypeScript:
      src/vector/map.ts(25,57): error TS2345: Argument of type 'Field<T[string | number | symbol]>[]' is not assignable to parameter of type 'Field<T[keyof T]>[]'.
        Type 'Field<T[string | number | symbol]>' is not assignable to type 'Field<T[keyof T]>'.
          Type 'T[string] | T[number] | T[symbol]' is not assignable to type 'T[keyof T]'.
            Type 'T[symbol]' is not assignable to type 'T[keyof T]'.
              Type 'DataType<Type, any>' is not assignable to type 'T[keyof T]'.
                Type 'symbol' is not assignable to type 'keyof T'.
                  Type 'symbol' is not assignable to type 'string | number'.
      

      Attachments

        Issue Links

          Activity

            People

              paul.e.taylor Paul Taylor
              paul.e.taylor Paul Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1h
                  1h