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:
Type check for test1 and test2 should have same result: both of them should pass type check, or neither of them pass type check
Actual behavior: test1 passed type check, test2 didn't:
Type '([s]: [string]) => void' is not assignable to type '(n: any[]) => void'.
Types of parameters '__0' and 'n' are incompatible.
Property '0' is missing in type 'any[]' but required in type '[string]'.