Home > @websublime/schema > BaseSchemaType > addRule
BaseSchemaType.addRule() method
Add validation rule.
Signature:
addRule({ errorMessage, params, validationFn }: Rule): this;
Parameters
Parameter | Type | Description |
---|---|---|
Rule |
Returns:
this
Home > @websublime/schema > BaseSchemaType > addRule
Add validation rule.
Signature:
addRule({ errorMessage, params, validationFn }: Rule): this;
Parameter | Type | Description |
---|---|---|
Rule |
Returns:
this