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.
The typeof-compare error message is a static string that does not give the user a hint of what went wrong.
It would be better to include the offending word in the error message.
Additionally, it is quite simple to also print out what the word should most likely be by calculating the distance to the closest match. The microsoft rule for the same behavior does this: https://github.com/Microsoft/tslint-microsoft-contrib/blob/master/src/validTypeofRule.ts
The text was updated successfully, but these errors were encountered: