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
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
functionfoo(myArg: any){if(isBar(myArg)){doTheThing(myArg);}elseif(isBaz(myArg)){anotherThing(myArg);}else{
...
}}functionisBar(x: any): x is IBar{
...
}functionisBaz(x: any): x is IBaz{
...
}
The text was updated successfully, but these errors were encountered:
Note: per #4534, this issue will be closed in less than a month if no PR is sent to add the rule. If you really need the rule, custom rules are always an option and can be maintained outside this repo!
Name:
no-type-assertion
no-angle-bracket-type-assertion
ruleFailing code:
Passing code:
The text was updated successfully, but these errors were encountered: