How to convert a TS switch-case to ts-pattern #87
st-clair-clarke
started this conversation in
General
Replies: 2 comments
-
Hi! You need to end the expression with either |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have the following state management function that works:
I am attempting to convert the switch-case above to ts-pattern as shown below (BUT IT DOES NOT DO ANYTHING)
What am I doing incorrectly.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions