fix(type): Only allow specified boolean when given#61
Conversation
provokateurin
left a comment
There was a problem hiding this comment.
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 <coding@schilljs.com>
2d51049 to
b86ce4d
Compare
Fixes
Before
After