refactor(Form)!: drop explicit support for zod and valibot (#3617)

This commit is contained in:
Romain Hamel
2025-03-19 12:18:26 +01:00
committed by GitHub
parent 02184b016a
commit 9a4bb34d7d
9 changed files with 14 additions and 95 deletions

View File

@@ -1,9 +1,7 @@
import type { StandardSchemaV1 } from '@standard-schema/spec'
import type { ComputedRef, DeepReadonly, Ref } from 'vue'
import type { ZodSchema } from 'zod'
import type { Schema as JoiSchema } from 'joi'
import type { ObjectSchema as YupObjectSchema } from 'yup'
import type { GenericSchema as ValibotSchema, GenericSchemaAsync as ValibotSchemaAsync, SafeParser as ValibotSafeParser, SafeParserAsync as ValibotSafeParserAsync } from 'valibot'
import type { GetObjectField } from './utils'
import type { Struct as SuperstructSchema } from 'superstruct'
@@ -23,12 +21,7 @@ export interface Form<T extends object> {
}
export type FormSchema<T extends object> =
| ZodSchema
| YupObjectSchema<T>
| ValibotSchema
| ValibotSchemaAsync
| ValibotSafeParser<any, any>
| ValibotSafeParserAsync<any, any>
| JoiSchema<T>
| SuperstructSchema<any, any>
| StandardSchemaV1