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
Note that it still works fine if you use (...args: never[]) => void instead (and it makes a bit more sense, because rest arguments are supposed to have an array/tuple type).
Playground
If I have a function with the signature of
(...args: never) => void
, TypeScript 5.1 now throws this error:Previous versions of TypeScript allows me to call the function without any parameters.
Is this intended behaviour? I don't believe seeing anything in the changelog mentioning this.
The text was updated successfully, but these errors were encountered: