Interface: IValidationResult
A structure used by (Editor:class).validateUserInfo to store results of the UserInfo validation.
Example
// Validate userInfo.
const validationResults = await editor.validateUserInfo(data);
if (validationResults.error) {
// Output the error.
console.error(validationResults);
return;
}
// Populate the product with valid user data.
editor.loadUserInfo(data);
Properties
error
error:
boolean
The validation status. If true, then the input contains errors.
errorMessage?
optionalerrorMessage?:string
The error message.