With 1.0, as a fn arg, how can I accept only Schemas that validate a specific type? #1425
Unanswered
holvi-sebastian
asked this question in
Q&A
Replies: 1 comment 6 replies
-
|
@sinclairzx81 what do you think would be the way to approach this? Should I try to build an inverse of |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Heya!
In
0.34, I used to be able to write functions like:This is useful in case I wanted to restrict the fn to accept only Schemas whose
Statics match a given typeT.Not sure how to do this in
1.0though, because there's nostaticprop any more...?Is there an equivalent in
1.0?Beta Was this translation helpful? Give feedback.
All reactions