We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 The bug What isn't working? Describe what the bug is.
Currently I try to add a custom validation rule, in shorthand: validation: (Rule) => Rule.custom((value, context) => true)
validation: (Rule) => Rule.custom((value, context) => true)
Custom Rules, should allow to obtain the context to reference other fields as described: sanity docs However, currently it gives an typescript error.
🛠️ To reproduce Steps to reproduce the behavior:
🌈 Expected behaviour What did you expect to happen? Is there a section in the docs about this?
Update the typescript definition to be compatible with sanity
ℹ️ Additional context
Thanks in advance
The text was updated successfully, but these errors were encountered:
danielroe
No branches or pull requests
🐛 The bug
What isn't working? Describe what the bug is.
Currently I try to add a custom validation rule, in shorthand:
validation: (Rule) => Rule.custom((value, context) => true)
Custom Rules, should allow to obtain the context to reference other fields as described:
sanity docs
However, currently it gives an typescript error.
🛠️ To reproduce
Steps to reproduce the behavior:
🌈 Expected behaviour
What did you expect to happen? Is there a section in the docs about this?
Update the typescript definition to be compatible with sanity
ℹ️ Additional context
Thanks in advance
The text was updated successfully, but these errors were encountered: