11 lines
660 B
TypeScript
11 lines
660 B
TypeScript
import { Schema } from 'effect';
|
|
import { ParseOptions } from 'effect/SchemaAST';
|
|
import { FieldValues, Resolver } from 'react-hook-form';
|
|
export declare function effectTsResolver<Input extends FieldValues, Context, Output>(schema: Schema.Schema<Output, Input>, schemaOptions?: ParseOptions, resolverOptions?: {
|
|
mode?: 'async' | 'sync';
|
|
raw?: false;
|
|
}): Resolver<Input, Context, Output>;
|
|
export declare function effectTsResolver<Input extends FieldValues, Context, Output>(schema: Schema.Schema<Output, Input>, schemaOptions: ParseOptions | undefined, resolverOptions: {
|
|
mode?: 'async' | 'sync';
|
|
raw: true;
|
|
}): Resolver<Input, Context, Input>;
|