build revisions and layout updates for toast
This commit is contained in:
parent
b341a3675e
commit
39235193e6
1116 changed files with 130517 additions and 12 deletions
25
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.d.ts
generated
vendored
Normal file
25
node_modules/@hookform/resolvers/fluentvalidation-ts/dist/fluentvalidation-ts.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { AsyncValidator, Validator } from 'fluentvalidation-ts';
|
||||
import { FieldValues, Resolver } from 'react-hook-form';
|
||||
/**
|
||||
* Creates a resolver for react-hook-form using FluentValidation schema validation
|
||||
* @param {Validator<TFieldValues>} validator - The FluentValidation validator to use
|
||||
* @returns {Resolver<TFieldValues>} A resolver function compatible with react-hook-form
|
||||
* @example
|
||||
* import { Validator } from 'fluentvalidation-ts';
|
||||
*
|
||||
* class SchemaValidator extends Validator<Schema> {
|
||||
* constructor() {
|
||||
* super();
|
||||
* this.ruleFor('username').notEmpty();
|
||||
* this.ruleFor('password').notEmpty();
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* const validator = new SchemaValidator();
|
||||
*
|
||||
* useForm({
|
||||
* resolver: fluentValidationResolver(validator)
|
||||
* });
|
||||
*/
|
||||
export declare function fluentValidationResolver<TFieldValues extends FieldValues>(validator: Validator<TFieldValues>): Resolver<TFieldValues>;
|
||||
export declare function fluentAsyncValidationResolver<TFieldValues extends FieldValues, TValidator extends AsyncValidator<TFieldValues>>(validator: TValidator): Resolver<TFieldValues>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue