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
Object literal may only specify known properties, and 'onlyAvailableItems' does not exist in type 'ValidateOptions'.ts(2353)
schema.d.ts(82, 3): The expected type comes from property 'validate' which is declared here on type 'ExtendedComponentSchema'
If I view the definition of ValidateOptions, I can see that onlyAvailableItems does not exist.
Describe the bug
A clear and concise description of what the bug is.
When using https://formio.github.io/formio.js/app/builder, you can enable
onlyAvailableItems
on aselect
component like this:However, when using the JS (TS) library, I cannot do the same, e.g.:
If I view the definition of
ValidateOptions
, I can see thatonlyAvailableItems
does not exist.formio.js/types/components/schema.d.ts
Line 170 in faf7220
Version/Branch
What release version or branch are you experiencing the behavior
4.19.x
To Reproduce
Steps to reproduce the behavior:
FormioForm
as a type.Expected behavior
A clear and concise description of what you expected to happen.
The error should not occur and the property should exist on the interface, as would be expected due to it being accepted in the JSON.
Additional context
If I'm doing something wrong, or my understanding is incorrect, please let me know, of course.
The text was updated successfully, but these errors were encountered: