scramjetorg / scramjet

Public tracker for Scramjet Cloud Platform, a platform that bring data from many environments together.

Home Page:https://www.scramjet.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript 3.8 definition file error

lygstate opened this issue · comments


node_modules/scramjet/.d.ts/scramjet.d.ts:38:96 - error TS2304: Cannot find name 'AsyncFunction'.

38     function from<T>(input: any[] | Iterable<T> | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: DataStreamOptions | Writable, ...args: any): DataStream;
                                                                                                  ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:38:132 - error TS2304: Cannot find name 'Readable'.

38     function from<T>(input: any[] | Iterable<T> | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: DataStreamOptions | Writable, ...args: any): DataStream;
                                                                                                                                      ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:38:172 - error TS2304: Cannot find name 'Writable'.

38     function from<T>(input: any[] | Iterable<T> | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: DataStreamOptions | Writable, ...args: any): DataStream;
                                                                                                                                                                              ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:45:48 - error TS2304: Cannot find name 'ScramjetOptions'.

45     function fromArray(array: any[], options?: ScramjetOptions): DataStream;
                                                  ~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:61:49 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

61     function createReadModule(anything: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: CreateModuleOptions, ...initialArgs: any): Function;     
                                                   ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:61:105 - error TS2304: Cannot find name 'AsyncFunction'.

61     function createReadModule(anything: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: CreateModuleOptions, ...initialArgs: any): Function;     
                                                                                                           ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:61:141 - error TS2304: Cannot find name 'Readable'.

61     function createReadModule(anything: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: CreateModuleOptions, ...initialArgs: any): Function;     
                                                                                                                                               ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:190:36 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

190         static from(input: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: DataStreamOptions | Writable, ...args: any): DataStream;
                                       ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:190:92 - error TS2304: Cannot find name 'AsyncFunction'.

190         static from(input: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: DataStreamOptions | Writable, ...args: any): DataStream;
                                                                                               ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:190:128 - error TS2304: Cannot find name 'Readable'.

190         static from(input: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: DataStreamOptions | Writable, ...args: any): DataStream;
                                                                                                                                   ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:190:168 - error TS2304: Cannot find name 'Writable'.

190         static from(input: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, options?: DataStreamOptions | Writable, ...args: any): DataStream;
                                                                                                                                                                           ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:318:64 - error TS2315: Type 'UseCallback' is not generic.

318         use(func: AsyncGeneratorFunction | GeneratorFunction | UseCallback<this> | String | Readable, ...parameters: any): this;
                                                                   ~~~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:318:93 - error TS2304: Cannot find name 'Readable'.

318         use(func: AsyncGeneratorFunction | GeneratorFunction | UseCallback<this> | String | Readable, ...parameters: any): this;
                                                                                                ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:348:43 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

348         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): DataStream;       
                                              ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:348:99 - error TS2304: Cannot find name 'AsyncFunction'.

348         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): DataStream;       
                                                                                                      ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:348:135 - error TS2304: Cannot find name 'Readable'.

348         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): DataStream;       
                                                                                                                                          ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:348:160 - error TS2304: Cannot find name 'AsyncFunction'.

348         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): DataStream;       
                                                                                                                                                                   ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:348:187 - error TS2304: Cannot find name 'Transform'.

348         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): DataStream;       
                                                                                                                                                                                              ~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:365:38 - error TS1047: A rest parameter cannot be optional.

365         whenWrote(chunk: any, ...more?: any): Promise<any>;
                                         ~
node_modules/scramjet/.d.ts/scramjet.d.ts:400:33 - error TS2304: Cannot find name 'Writable'.

400         tee(func: TeeCallback | Writable): this;
                                    ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:458:18 - error TS2304: Cannot find name 'Writable'.

458         pipe(to: Writable, options?: WritableOptions): Writable;
                     ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:458:38 - error TS2304: Cannot find name 'WritableOptions'.

458         pipe(to: Writable, options?: WritableOptions): Writable;
                                         ~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:458:56 - error TS2304: Cannot find name 'Writable'.

458         pipe(to: Writable, options?: WritableOptions): Writable;
                                                           ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:491:39 - error TS2707: Generic type 'Iterator<T, TReturn, TNext>' requires between 1 and 3 type arguments.

491         static fromIterator(iterator: Iterator, options?: DataStreamOptions): DataStream;
                                          ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:500:48 - error TS8020: JSDoc types can only be used inside documentation comments.

500         toArray(initial?: any[]): Promise<Array.<any>>;
                                                   ~
node_modules/scramjet/.d.ts/scramjet.d.ts:505:33 - error TS8020: JSDoc types can only be used inside documentation comments.

505         toGenerator(): Generator.<Promise.<any>>;
                                    ~
node_modules/scramjet/.d.ts/scramjet.d.ts:505:42 - error TS8020: JSDoc types can only be used inside documentation comments.

505         toGenerator(): Generator.<Promise.<any>>;
                                             ~
node_modules/scramjet/.d.ts/scramjet.d.ts:517:32 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

517         pull(pullable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...args: any): Promise<Promise>;
                                   ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:517:88 - error TS2304: Cannot find name 'AsyncFunction'.

517         pull(pullable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...args: any): Promise<Promise>;
                                                                                           ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:517:124 - error TS2304: Cannot find name 'Readable'.

517         pull(pullable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...args: any): Promise<Promise>;
                                                                                                                               ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:517:157 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

517         pull(pullable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...args: any): Promise<Promise>;
                                                                                                                                                                ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:588:66 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

588         accumulate(func: AccumulateCallback, into: any): Promise<Promise>;
                                                                     ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:613:53 - error TS2304: Cannot find name 'EventEmitter'.

613         reduceNow(func: ReduceCallback, into: any | EventEmitter): any;
                                                        ~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:646:28 - error TS2503: Cannot find namespace 'stream'.

646         concat(...streams: stream.Readable): this;
                               ~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:690:58 - error TS1016: A required parameter cannot follow an optional parameter.

690         distribute(affinity?: AffinityCallback | Number, clusterFunc: ClusterCallback, options?: DataStreamOptions): this;
                                                             ~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:690:71 - error TS2304: Cannot find name 'ClusterCallback'.

690         distribute(affinity?: AffinityCallback | Number, clusterFunc: ClusterCallback, options?: DataStreamOptions): this;
                                                                          ~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:697:31 - error TS2315: Type 'Object' is not generic.

697         separateInto(streams: Object<DataStream>, affinity: AffinityCallback): this;
                                  ~~~~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:716:32 - error TS2304: Cannot find name 'DelegateCallback'.

716         delegate(delegateFunc: DelegateCallback, worker: WorkerStream, plugins?: any[]): this;
                                   ~~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:716:58 - error TS2304: Cannot find name 'WorkerStream'.

716         delegate(delegateFunc: DelegateCallback, worker: WorkerStream, plugins?: any[]): this;
                                                             ~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:760:33 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

760         toJSONArray(enclosure?: Iterable): StringStream;
                                    ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:767:63 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

767         toJSONObject(entryCallback?: MapCallback, enclosure?: Iterable): StringStream;
                                                                  ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:793:58 - error TS1016: A required parameter cannot follow an optional parameter.

793         exec(command: String, options?: ExecDataOptions, args: String): void;
                                                             ~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:842:38 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

842     type MapCallback = (chunk: any)=>Promise | any;
                                         ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:857:62 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

857     type ReduceCallback = (accumulator: any, chunk: Object)=>Promise | any;
                                                                 ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:982:9 - error TS2416: Property 'shift' in type 'StringStream' is not assignable to the same property in base type 'DataStream'.
  Type '(bytes: Number, func: ShiftStringCallback) => this' is not assignable to type '(count: Number, func: ShiftCallback) => this'.
    Types of parameters 'func' and 'func' are incompatible.
      Types of parameters 'shifted' and 'shifted' are incompatible.
        Type 'String' is missing the following properties from type 'Object[]': pop, push, join, reverse, and 19 more.

982         shift(bytes: Number, func: ShiftStringCallback): this;
            ~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1040:43 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

1040         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, transforms: AsyncFunction | Function | Transform): StringStream;       
                                               ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1040:99 - error TS2304: Cannot find name 'AsyncFunction'.

1040         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, transforms: AsyncFunction | Function | Transform): StringStream;       
                                                                                                       ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1040:135 - error TS2304: Cannot find name 'Readable'.

1040         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, transforms: AsyncFunction | Function | Transform): StringStream;       
                                                                                                                                           ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1040:157 - error TS2304: Cannot find name 'AsyncFunction'.

1040         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, transforms: AsyncFunction | Function | Transform): StringStream;       
                                                                                                                                                                 ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1040:184 - error TS2304: Cannot find name 'Transform'.

1040         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, transforms: AsyncFunction | Function | Transform): StringStream;       
                                                                                                                                                                                            ~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1049:46 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

1049         static from(source: String | any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): StringStream;
                                                  ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1049:102 - error TS2304: Cannot find name 'AsyncFunction'.

1049         static from(source: String | any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): StringStream;
                                                                                                          ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1049:129 - error TS2304: Cannot find name 'Readable'.

1049         static from(source: String | any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): StringStream;
                                                                                                                                     ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1049:169 - error TS2304: Cannot find name 'Writable'.

1049         static from(source: String | any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): StringStream;
                                                                                                                                                                             ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1095:9 - error TS2416: Property 'exec' in type 'StringStream' is not assignable to the same property in base type 'DataStream'.
  Type '(command: String, options?: ExecOptions, ...args: String) => void' is not assignable to type '(command: String, options?: ExecDataOptions, args: String) => void'.
    Types of parameters 'options' and 'options' are incompatible.
      Type 'ExecDataOptions' has no properties in common with type 'ExecOptions'.

1095         exec(command: String, options?: ExecOptions, ...args: String): void;
             ~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1095:54 - error TS2370: A rest parameter must be of an array type.

1095         exec(command: String, options?: ExecOptions, ...args: String): void;
                                                          ~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1109:10 - error TS2300: Duplicate identifier 'ParseCallback'.

1109     type ParseCallback = (chunk: String)=>Promise;
              ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1109:43 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

1109     type ParseCallback = (chunk: String)=>Promise;
                                               ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1115:10 - error TS2300: Duplicate identifier 'ParseCallback'.

1115     type ParseCallback = (chunk: Buffer)=>Promise;
              ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1115:43 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

1115     type ParseCallback = (chunk: Buffer)=>Promise;
                                               ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1151:9 - error TS2416: Property 'shift' in type 'BufferStream' is not assignable to the same property in base type 'DataStream'.
  Type '(chars: Number, func: ShiftBufferCallback) => BufferStream' is not assignable to type '(count: Number, func: ShiftCallback) => this'.
    Types of parameters 'func' and 'func' are incompatible.
      Types of parameters 'shifted' and 'shifted' are incompatible.
        Type 'Buffer' is missing the following properties from type 'Object[]': pop, push, concat, shift, and 3 more.

1151         shift(chars: Number, func: ShiftBufferCallback): BufferStream;
             ~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1174:9 - error TS2416: Property 'stringify' in type 'BufferStream' is not assignable to the same property in base type 'DataStream'.
  Type '(encoding?: String) => StringStream' is not assignable to type '(serializer?: MapCallback) => StringStream'.
    Types of parameters 'encoding' and 'serializer' are incompatible.
      Type 'MapCallback' is missing the following properties from type 'String': charAt, charCodeAt, concat, indexOf, and 38 more.

1174         stringify(encoding?: String): StringStream;
             ~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1192:43 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

1192         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): BufferStream;    
                                               ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1192:99 - error TS2304: Cannot find name 'AsyncFunction'.

1192         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): BufferStream;    
                                                                                                       ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1192:135 - error TS2304: Cannot find name 'Readable'.

1192         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): BufferStream;    
                                                                                                                                           ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1192:160 - error TS2304: Cannot find name 'AsyncFunction'.

1192         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): BufferStream;    
                                                                                                                                                                    ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1192:187 - error TS2304: Cannot find name 'Transform'.

1192         static pipeline(readable: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | String | Readable, ...transforms: AsyncFunction | Function | Transform): BufferStream;    
                                                                                                                                                                                               ~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1200:37 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

1200         static from(stream: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): BufferStream;
                                         ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1200:93 - error TS2304: Cannot find name 'AsyncFunction'.

1200         static from(stream: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): BufferStream;
                                                                                                 ~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1200:120 - error TS2304: Cannot find name 'Readable'.

1200         static from(stream: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): BufferStream;
                                                                                                                            ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1200:160 - error TS2304: Cannot find name 'Writable'.

1200         static from(stream: any[] | Iterable | AsyncGeneratorFunction | GeneratorFunction | AsyncFunction | Function | Readable, options?: DataStreamOptions | Writable): BufferStream;
                                                                                                                                                                    ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1232:53 - error TS2304: Cannot find name 'Readable'.

1232         constructor(streams: any[] | AsyncGenerator<Readable> | Generator<Readable>, options?: Object);
                                                         ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1232:75 - error TS2304: Cannot find name 'Readable'.

1232         constructor(streams: any[] | AsyncGenerator<Readable> | Generator<Readable>, options?: Object);
                                                                               ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1274:23 - error TS2304: Cannot find name 'Arguments'.

1274         find(...args: Arguments): DataStream;
                           ~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1282:22 - error TS2304: Cannot find name 'TransformFunction'.

1282         filter(func: TransformFunction): MultiStream;
                          ~~~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1295:26 - error TS2304: Cannot find name 'ComparatorFunction'.

1295         mux(comparator?: ComparatorFunction, ClassType?: Function): DataStream;
                              ~~~~~~~~~~~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1304:21 - error TS2503: Cannot find namespace 'stream'.

1304         add(stream: stream.Readable): void;
                         ~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1313:24 - error TS2503: Cannot find namespace 'stream'.

1313         remove(stream: stream.Readable): void;
                            ~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1357:63 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

1357     type AccumulateCallback = (accumulator: any, chunk: any)=>Promise | any;
                                                                   ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1363:42 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

1363     type ConsumeCallback = (chunk: any)=>Promise | any;
                                              ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1371:56 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

1371     type RemapCallback = (emit: Function, chunk: any)=>Promise | any;
                                                            ~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1378:50 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

1378     type FlatMapCallback = (chunk: any)=>Promise<Iterable> | Iterable;
                                                      ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1378:62 - error TS2314: Generic type 'Iterable<T>' requires 1 type argument(s).

1378     type FlatMapCallback = (chunk: any)=>Promise<Iterable> | Iterable;
                                                                  ~~~~~~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1486:9 - error TS2416: Property 'sum' in type 'WindowStream' is not assignable to the same property in base type 'NumberStream'.
  Type '(valueOf?: ValueOfCallback) => NumberStream' is not assignable to type '() => Promise<Number>'.
    Type 'NumberStream' is missing the following properties from type 'Promise<Number>': then, [Symbol.toStringTag], finally

1486         sum(valueOf?: ValueOfCallback): NumberStream;
             ~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1492:9 - error TS2416: Property 'avg' in type 'WindowStream' is not assignable to the same property in base type 'NumberStream'.
  Type '(valueOf?: ValueOfCallback) => NumberStream' is not assignable to type '() => Promise<Number>'.
    Type 'NumberStream' is not assignable to type 'Promise<Number>'.

1492         avg(valueOf?: ValueOfCallback): NumberStream;
             ~~~
node_modules/scramjet/.d.ts/scramjet.d.ts:1519:24 - error TS2304: Cannot find name 'StreamWorker'.

1519         StreamWorker?: StreamWorker;

@lygstate can you help me with testing? I have a new rewrite of TypeScript definitions, but I'm not sure if they work in all cases - I've seen some massive timeouts in a couple situations and I'm not sure if that's because of me overdoing it... :/

If so, can you join scramjet's slack?

timeout for what?

If there is too much issue: TypeScript rewrite would improve the code quality

The timeout appears in some cases on using tsc and it's regarding the ts rewrite. As to code quality - I don't think TS does not improve code quality as such, but I'm more interested in making writing new methods easier.

The core part, mostly for perfomance reasons needs to stay in pure js (besides the code there simply won't work with TS - it's too complicated).

So my aim now is to make proper definitions with type hinting within methods, the problem is that achieving that requires quite some complicated definitions with complex generics. The type hinting now works in VSCode.

Let's talk on slack, I'll do some testing.

@lygstate can you check v4.30?

We have a confirmation, v4.30 solves the issues