DEV Community

Discussion on: TypeScript Exercises Bonus🦠 - Answers Part 1

Collapse
 
macsikora profile image
Pragmatic Maciej

Ye you have nail that as the false is only when we have different states. That is very good answer 👍

Collapse
 
arthurka profile image
ArthurKa • Edited

I guess it's better not to bind the implementation to discriminated field value (state). It should remain variable.