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

Better incomplete product (type) error #6

Open
2 tasks
HugoMendes98 opened this issue Feb 4, 2024 · 0 comments
Open
2 tasks

Better incomplete product (type) error #6

HugoMendes98 opened this issue Feb 4, 2024 · 0 comments
Labels
enhancement New feature or request type-check

Comments

@HugoMendes98
Copy link
Member

It currently returns a "possibly unusable and impossible" type to rise error at compilation time.
However, something like ts-pattern exhaustive would be great.
It really fails at compilation (when the current implementation returns another type) and it also give some information about the non-exhaustive patterns.

The objectifs are:

  • Make it fail at compilation.
    • The developer must volontary add a ts-error
  • With or without the previous task, inform in a way of the missings elements from the pattern.
@HugoMendes98 HugoMendes98 added type-check enhancement New feature or request labels Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request type-check
Projects
None yet
Development

No branches or pull requests

1 participant