TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
How to build a program that cannot do the wrong thing
3 points
by
Darmani
almost 3 years ago
1 comment
designed
almost 3 years ago
I would use a state machine in this case. The best tool for doing this in JavaScript/TypeScript is XState. Highly recommend.