Home > @websublime/schema > BaseSchemaType > addRule

BaseSchemaType.addRule() method

Add validation rule.

Signature:

addRule({ errorMessage, params, validationFn }: Rule): this;

Parameters

ParameterTypeDescription
Rule

Returns:

this