Skip to content

Commit

Permalink
fix(resolvers): solve valibot resolver type error (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini-ghost authored Feb 17, 2024
1 parent 83cb5fe commit 82e6958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/resolvers/valibot/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ObjectSchema } from 'valibot';
import { BaseSchema, BaseSchemaAsync } from 'valibot';

import type { FormErrors, FormValues } from '@vorms/core';

export type Resolver = <T extends ObjectSchema<any, any>>(
export type Resolver = <T extends BaseSchema | BaseSchemaAsync>(
schema: T,
) => <Values extends FormValues = FormValues>(
values: Values,
Expand Down

0 comments on commit 82e6958

Please sign in to comment.