Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: disallow type guards #7

Open
billwanjohi opened this issue Sep 24, 2024 · 0 comments
Open

Feature: disallow type guards #7

billwanjohi opened this issue Sep 24, 2024 · 0 comments

Comments

@billwanjohi
Copy link

Type guards are a more systematic way of asserting a type, but they are still prone to unsoundness, particularly if/when the type/interface in question evolves without a revisit of the guard (e.g. adding a property).

It would be nice to be able to disallow all type guards, and/or to disallow ones asserting compatibility with a named type or interface (as opposed to an inline type).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant