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
errorMessages keys should ideally be restricted to ValidityStateKey unioned with keys in customValidations.
let formDefinitions: FormSchema = {
inputs: {
name: {
validationAttrs: {
required: true,
},
},
custom: {
customValidations: {
isThisThingValid() { ... }
},
errorMessages: {
// ✅ OK since this matches a customValidation
isThisThingValid: () => { ... }
// ❌ Should fail because nope is not a ValidityStateKey or a customValidation name
nope: () => { ... }
},
},
},
errorMessages: {
// ✅ OK since this matches a ValidityStateKey
valueMissing: () => { ... }
// ❌ Should fail because nope is not a ValidityStateKey or a custom validation name
nope: () => { ... }
}
}
The text was updated successfully, but these errors were encountered:
errorMessages
keys should ideally be restricted toValidityStateKey
unioned with keys incustomValidations
.The text was updated successfully, but these errors were encountered: