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
As you can see, this results in a recursive type and the usual way of defining pattern objects would be failing with a "Block-scoped variable used before its declaration."
Is there a way to do this, or do I need to resort to P.any here?
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
-
I try to convert the following type definition into patterns:
As you can see, this results in a recursive type and the usual way of defining pattern objects would be failing with a "Block-scoped variable used before its declaration."
Is there a way to do this, or do I need to resort to P.any here?
Beta Was this translation helpful? Give feedback.
All reactions