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
* Make never rest type top-like
* Add higher-order test
* properly support types which reduce to never
Co-authored-by: Wesley Wigham <[email protected]>
tests/cases/compiler/genericRestTypes.ts(21,11): error TS2322: Type '(cb: (x: string, ...rest: T) => void) => void' is not assignable to type '(cb: (...args: never) => void) => void'.
2
+
Types of parameters 'cb' and 'cb' are incompatible.
3
+
Types of parameters 'args' and 'x' are incompatible.
4
+
Type '[string, ...T[number][]]' is not assignable to type 'never'.
0 commit comments