-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix(type): Only allow specified boolean when given #61
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test case for ...|true|false
would also be good to have. Technically we can drop the enum part because boolean is already limited to those two values.
7591a26
to
60c0b70
Compare
0af59d7
to
defa2d1
Compare
defa2d1
to
2d51049
Compare
What is the correct replacement for |
It is correct, I was just proposing to merge two boolean enums for a type like |
That happens already.
Those can be achieved by:
but it makes the enum listed on all items:
If we are okay with that I can commit that. Otherwise it needs to wait a longer time until we find a better way to handle the enum situation. |
No, I think it's a bad idea. Let's merge it as is and open a follow up issue to improve it later. |
Signed-off-by: Joas Schilling <[email protected]>
2d51049
to
b86ce4d
Compare
Fixes
Before
After