UNPKG

@hookform/resolvers

Version:

React Hook Form validation resolvers: Yup, Joi, Superstruct, Zod, Vest, Class Validator, io-ts, Nope, computed-types, TypeBox, arktype, Typanion, Effect-TS and VineJS

9 lines (8 loc) 570 B
import { StandardSchemaV1 } from '@standard-schema/spec'; import { FieldValues, Resolver } from 'react-hook-form'; export declare function arktypeResolver<Input extends FieldValues, Context, Output>(schema: StandardSchemaV1<Input, Output>, _schemaOptions?: never, resolverOptions?: { raw?: false; }): Resolver<Input, Context, Output>; export declare function arktypeResolver<Input extends FieldValues, Context, Output>(schema: StandardSchemaV1<Input, Output>, _schemaOptions: never | undefined, resolverOptions: { raw: true; }): Resolver<Input, Context, Input>;