Rxjs: Allow using Typescript 4.0 RC for more type info

Created on 21 Aug 2020  路  4Comments  路  Source: ReactiveX/rxjs

As you can see, such as forkJoin can only support full type deduction when the number of args less then 6.

Using typescript 4.0 can allow type deduction for infinity args.

Most helpful comment

@kwonoj did the team research the possibility of shipping different types depending on version?

Disclaimer: I have no idea how practical this is, but it would certainly be nice if using rxjs under 4.0 could take advantage of the new features while older TS versions got type info in its current form.

All 4 comments

Dupe of https://github.com/ReactiveX/rxjs/issues/5599

Core team tracks internal roadmap when we can use 4.0 features which'll require breaking change to support users on tsc lower than 4.0.

@kwonoj did the team research the possibility of shipping different types depending on version?

Disclaimer: I have no idea how practical this is, but it would certainly be nice if using rxjs under 4.0 could take advantage of the new features while older TS versions got type info in its current form.

@kwonoj Have you worked on TS 4.0? I would like to provide some help.

the team research the possibility of shipping different types depending on version

Core team once had discussed about this. We do use tsc to create type interfaces and tsc doesn't provide to way to create against multiple version targets, requires manual editing which we do not pursue at the moment. Moreover we do not have setup to validate / test across different interfaces per version.

Please use original issue to track progress / discuss. I'll close this as dupe.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

giovannicandido picture giovannicandido  路  4Comments

jakovljevic-mladen picture jakovljevic-mladen  路  3Comments

matthewwithanm picture matthewwithanm  路  4Comments

OliverJAsh picture OliverJAsh  路  3Comments

Zzzen picture Zzzen  路  3Comments