Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/forms/signals/src/api/rules/validation/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const EMAIL_REGEXP =
*
* @param path Path of the field to validate
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.email()`
* - `error`: Custom validation error(s) to be used instead of the default `emailError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
*
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/signals/src/api/rules/validation/max.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {maxError} from './validation_errors';
* @param path Path of the field to validate
* @param maxValue The maximum value, or a LogicFn that returns the maximum value.
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.max(maxValue)`
* - `error`: Custom validation error(s) to be used instead of the default `maxError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {maxDateError} from './validation_errors';
* @param path Path of the field to validate
* @param maxDate The maximum date, or a LogicFn that returns the maximum date.
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.max(maxDate)`
* - `error`: Custom validation error(s) to be used instead of the default `maxDateError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {maxLengthError} from './validation_errors';
* @param path Path of the field to validate
* @param maxLength The maximum length, or a LogicFn that returns the maximum length.
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.maxLength(maxLength)`
* - `error`: Custom validation error(s) to be used instead of the default `maxLengthError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TValue The type of value stored in the field the logic is bound to.
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/signals/src/api/rules/validation/min.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {minError} from './validation_errors';
* @param path Path of the field to validate
* @param minValue The minimum value, or a LogicFn that returns the minimum value.
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.min(minValue)`
* - `error`: Custom validation error(s) to be used instead of the default `minError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {minDateError} from './validation_errors';
* @param path Path of the field to validate
* @param minDate The minimum date, or a LogicFn that returns the minimum date.
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.min(minDate)`
* - `error`: Custom validation error(s) to be used instead of the default `minDateError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {minLengthError} from './validation_errors';
* @param path Path of the field to validate
* @param minLength The minimum length, or a LogicFn that returns the minimum length.
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.minLength(minLength)`
* - `error`: Custom validation error(s) to be used instead of the default `minLengthError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TValue The type of value stored in the field the logic is bound to.
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/signals/src/api/rules/validation/pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {patternError} from './validation_errors';
* @param path Path of the field to validate
* @param pattern The RegExp pattern to match, or a LogicFn that returns the RegExp pattern.
* @param config Optional, allows providing any of the following options:
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.pattern(pattern)`
* - `error`: Custom validation error(s) to be used instead of the default `patternError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* @template TPathKind The kind of path the logic is bound to (a root path, child path, or item of an array)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {requiredError} from './validation_errors';
* @param path Path of the field to validate
* @param config Optional, allows providing any of the following options:
* - `message`: A user-facing message for the error.
* - `error`: Custom validation error(s) to be used instead of the default `ValidationError.required()`
* - `error`: Custom validation error(s) to be used instead of the default `requiredError()`
* or a function that receives the `FieldContext` and returns custom validation error(s).
* - `when`: A function that receives the `FieldContext` and returns true if the field is required
* @template TValue The type of value stored in the field the logic is bound to.
Expand Down
Loading