Skip to content

Commit

Permalink
feat: expose validator types
Browse files Browse the repository at this point in the history
  • Loading branch information
Balastrong committed Aug 17, 2024
1 parent 212c58a commit 3001b63
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/valibot-form-adapter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './validator'
export * from './types'
3 changes: 3 additions & 0 deletions packages/valibot-form-adapter/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import type { valibotValidator } from './validator'

export type ValibotValidator = ReturnType<typeof valibotValidator>
1 change: 1 addition & 0 deletions packages/yup-form-adapter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './validator'
export * from './types'
3 changes: 3 additions & 0 deletions packages/yup-form-adapter/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import type { yupValidator } from './validator'

export type YupValidator = ReturnType<typeof yupValidator>
1 change: 1 addition & 0 deletions packages/zod-form-adapter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './validator'
export * from './types'
3 changes: 3 additions & 0 deletions packages/zod-form-adapter/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import type { zodValidator } from './validator'

export type ZodValidator = ReturnType<typeof zodValidator>

0 comments on commit 3001b63

Please sign in to comment.