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
It's fixed if you have the strictFunctionTypes flag enabled (or strict) in tsconfig.json - may be worth making a PR to note this behavior has been patched behind a flag.
The example in https://basarat.gitbook.io/typescript/type-system/type-compatibility#types-of-arguments
will actually error when tried out in https://www.typescriptlang.org/play so I don't understand what that example is about. Tried with 3.3.3, 3.9.2, 4.0.2 . Possibly it worked in a previous ts version.
The text was updated successfully, but these errors were encountered: