You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
These type definitions work, allowing definition of a generic type that makes all methods in an interface return promises, while preserving the type constraints of the arguments. Actual behavior:
The ...args version is rejected. I either have to define N versions of the conditional type with different numbers of arguments, or lose type safety for the arguments.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Activity
mhegazy commentedon Apr 6, 2018
rest parameters need to be of array type...
general issue of unifying parameters and arrays/tuples is #5453
typescript-bot commentedon Apr 21, 2018
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.