@teamnovu/kit-vue-forms 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ export interface UseFormOptions<T extends FormDataDefault, TOut = T> extends Val
|
|
|
9
9
|
keepValuesOnUnmount?: MaybeRef<boolean>;
|
|
10
10
|
}
|
|
11
11
|
export declare function useForm<T extends FormDataDefault, TOut = T>(options: UseFormOptions<T, TOut> & {
|
|
12
|
-
schema: z.ZodType<TOut, T
|
|
12
|
+
schema: MaybeRef<z.ZodType<TOut, T>>;
|
|
13
13
|
}): Form<T, TOut>;
|
|
14
14
|
export declare function useForm<T extends FormDataDefault>(options: Omit<UseFormOptions<T, T>, 'schema'> & {
|
|
15
15
|
schema?: undefined;
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ export interface UseFormOptions<T extends FormDataDefault, TOut = T>
|
|
|
33
33
|
export function useForm<
|
|
34
34
|
T extends FormDataDefault,
|
|
35
35
|
TOut = T,
|
|
36
|
-
>(options: UseFormOptions<T, TOut> & { schema: z.ZodType<TOut, T
|
|
36
|
+
>(options: UseFormOptions<T, TOut> & { schema: MaybeRef<z.ZodType<TOut, T>> }): Form<T, TOut>
|
|
37
37
|
|
|
38
38
|
// Overload: without schema - infer types from initialData
|
|
39
39
|
export function useForm<T extends FormDataDefault>(
|