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
Typescript now infers type predicates properly, but with this change I think we should disallow the use of the Boolean constructor as an argument for the Array.filter function.
The Boolean part of this rule and the auto fix break my code, because they don't work well with typescript.
I write this:
and it converts it to this:
This is not the same. The type of output is
Array<string>
in my code andArray<string | null>
in the 'autofixed' code.The text was updated successfully, but these errors were encountered: