Ts-toolbelt: TypeScript 3.6.4 incompatible

Created on 2 Nov 2019  路  3Comments  路  Source: millsp/ts-toolbelt

[email protected]

node_modules/ts-toolbelt/out/types/src/Tuple/Reverse.d.ts:15:14 - error TS2589: Type instantiation is excessively deep and possibly infinite.

15 declare type _Reverse<T extends Tuple, TO extends Tuple = [], L extends Number = Max<Length<T, 's'>>, I extends Iteration = IterationOf<'0'>> = {
                ~~~~~~~~

node_modules/ts-toolbelt/out/types/src/Tuple/Reverse.d.ts:27:71 - error TS2589: Type instantiation is excessively deep and possibly infinite.

27 export declare type Reverse<T extends Tuple, TO extends Tuple = []> = _Reverse<T, TO> extends infer X ? Cast<X, Tuple> : never;
                                                                         ~~~~~~~~~~~~~~~

bug

Most helpful comment

Fixed, it'll be out in a few minutes. https://travis-ci.org/pirix-gh/ts-toolbelt/builds/606383083

All 3 comments

npm list ts-toolbelt will show you which package is importing ts-toolbelt so you can deal with it.

Hi @qwelias @eyexpo-thomas, thanks for reporting this.

This seems to be only related to 3.6.4 only.

I'm going to make sure this does not happen again by testing each single version of TS that is supported, before the release (with the CI).

Fixed, it'll be out in a few minutes. https://travis-ci.org/pirix-gh/ts-toolbelt/builds/606383083

Was this page helpful?
0 / 5 - 0 ratings