You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use ts-pattern to check API responses against patterns, and while it is not a necessity, I'd like to set some fields like id to readonly. Is this possible with patterns, so that a readonly field is infered?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We use ts-pattern to check API responses against patterns, and while it is not a necessity, I'd like to set some fields like id to readonly. Is this possible with patterns, so that a readonly field is infered?
Beta Was this translation helpful? Give feedback.
All reactions