pkl: type specialisation for validation #2085
amitu
started this conversation in
Ideas & RFCs
Replies: 0 comments
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.
-
In pkl you can write:
Point to note that they have "specialised types like
Int(this >= 3)
orString(nameRequiresBranchName)?
, the()
after the type gets a checker, which can be an expression, or a reference to a function / method.We can do the same for us:
We have use
{}
so we can put arbitrarily long expressions there.Beta Was this translation helpful? Give feedback.
All reactions