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
@RyanCavanaugh I'll be happy to make a PR if you tell me the intended behavior. A this type guard function can be overridden with any function returning a boolean, or it can only be overridden with a this type guard function for the same type (as is the rule for parameter type guards and is sound)? The previous discussion I found is here.
TypeScript Version: master (07966dc)
Search Terms: user-defined type guard predicate method override overridden return
Code
Expected behavior: Error on
"this is nonsense"
.Actual behavior: No error.
Playground Link: link
Related Issues: none found
The text was updated successfully, but these errors were encountered: