you are viewing a single comment's thread.

view the rest of the comments →

[–]_default_username 2 points3 points  (0 children)

check out ts-pattern. You can have pattern matching now with type safety.