@volverjs/form-vue 1.0.0-beta.25 → 1.0.0-beta.27

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.
package/dist/index.d.ts CHANGED
@@ -7,12 +7,12 @@ import { defineFormWrapper } from './VvFormWrapper';
7
7
  import { InjectedFormData, InjectedFormWrapperData, InjectedFormFieldData, FormComposableOptions, FormPluginOptions, FormTemplateItem, Path, PathValue, FormSchema, FormTemplate } from './types';
8
8
  export declare const pluginInjectionKey: InjectionKey<FormPluginOptions>;
9
9
  export declare function createForm(options: FormPluginOptions): Plugin & Partial<ReturnType<typeof useForm>>;
10
- export declare function useForm<Schema extends FormSchema>(schema: Schema, options?: FormComposableOptions<Schema>): {
10
+ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema, options?: FormComposableOptions<Schema, Type>): {
11
11
  clear: () => void;
12
12
  errors: import('vue').Ref<import('zod').inferFormattedError<Schema, string> | undefined, import('zod').inferFormattedError<Schema, string> | undefined>;
13
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema> | undefined>, Partial<import('zod').TypeOf<Schema> | undefined>>;
13
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined>;
14
14
  formFieldInjectionKey: InjectionKey<InjectedFormFieldData<Schema>>;
15
- formInjectionKey: InjectionKey<InjectedFormData<Schema>>;
15
+ formInjectionKey: InjectionKey<InjectedFormData<Schema, Type>>;
16
16
  formWrapperInjectionKey: InjectionKey<InjectedFormWrapperData<Schema>>;
17
17
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
18
18
  invalid: import('vue').ComputedRef<boolean>;
@@ -21,7 +21,8 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
21
21
  status: import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>;
22
22
  stopUpdatesWatch: import('vue').WatchStopHandle;
23
23
  submit: () => Promise<boolean>;
24
- validate: (value?: Partial<import('zod').TypeOf<Schema> | undefined>, fields?: Set<string>) => Promise<boolean>;
24
+ validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
25
+ wrappers: Map<string, InjectedFormWrapperData<Schema>>;
25
26
  VvForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
26
27
  continuousValidation: {
27
28
  type: BooleanConstructor;
@@ -40,13 +41,13 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
40
41
  default: string;
41
42
  };
42
43
  template: {
43
- type: import('vue').PropType<FormTemplate<Schema>>;
44
+ type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
44
45
  default: undefined;
45
46
  };
46
47
  }>, {
47
48
  clear: () => void;
48
49
  errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>>;
49
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema> | undefined>, Partial<import('zod').TypeOf<Schema> | undefined>>;
50
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined>;
50
51
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
51
52
  invalid: import('vue').ComputedRef<boolean>;
52
53
  isReadonly: import('vue').Ref<boolean, boolean>;
@@ -54,7 +55,8 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
54
55
  status: Readonly<import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>>;
55
56
  stopUpdatesWatch: import('vue').WatchStopHandle;
56
57
  submit: () => Promise<boolean>;
57
- validate: (value?: Partial<import('zod').TypeOf<Schema> | undefined>, fields?: Set<string>) => Promise<boolean>;
58
+ validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
59
+ wrappers: Map<string, InjectedFormWrapperData<Schema>>;
58
60
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly")[], "invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
61
  continuousValidation: {
60
62
  type: BooleanConstructor;
@@ -73,7 +75,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
73
75
  default: string;
74
76
  };
75
77
  template: {
76
- type: import('vue').PropType<FormTemplate<Schema>>;
78
+ type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
77
79
  default: undefined;
78
80
  };
79
81
  }>> & Readonly<{
@@ -86,22 +88,23 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
86
88
  }>, {
87
89
  readonly: boolean;
88
90
  tag: string;
89
- template: FormTemplate<Schema>;
91
+ template: FormTemplate<Schema, Type>;
90
92
  continuousValidation: boolean;
91
93
  modelValue: Record<string, any>;
92
94
  }, import('vue').SlotsType<{
93
95
  default: {
94
96
  errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>>;
95
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema> | undefined>, Partial<import('zod').TypeOf<Schema> | undefined>>;
97
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined>;
96
98
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
97
99
  invalid: import('vue').ComputedRef<boolean>;
98
100
  readonly: import('vue').Ref<boolean, boolean>;
99
101
  status: Readonly<import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>>;
100
102
  stopUpdatesWatch: import('vue').WatchStopHandle;
101
103
  submit: () => Promise<boolean>;
102
- validate: (value?: Partial<import('zod').TypeOf<Schema> | undefined>, fields?: Set<string>) => Promise<boolean>;
104
+ validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
103
105
  clear: () => void;
104
106
  reset: () => void;
107
+ wrappers: Map<string, InjectedFormWrapperData<Schema>>;
105
108
  };
106
109
  }>, {}, {}, "invalid" | "valid" | "reset" | "status" | "readonly" | "clear" | "submit" | "errors" | "tag" | "template" | "validate", import('vue').ComponentProvideOptions, true, {}, any>;
107
110
  VvFormField: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -115,11 +118,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
115
118
  default: undefined;
116
119
  };
117
120
  name: {
118
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
121
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
119
122
  required: true;
120
123
  };
121
124
  props: {
122
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
125
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
123
126
  default: () => {};
124
127
  };
125
128
  showValid: {
@@ -147,10 +150,10 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
147
150
  } | import('vue').ConcreteComponent>;
148
151
  hasProps: import('vue').ComputedRef<{
149
152
  name: {} | ([{
150
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
153
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
151
154
  required: true;
152
155
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
153
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
156
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
154
157
  required: true;
155
158
  });
156
159
  invalid: boolean;
@@ -173,11 +176,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
173
176
  default: undefined;
174
177
  };
175
178
  name: {
176
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
179
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
177
180
  required: true;
178
181
  };
179
182
  props: {
180
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
183
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
181
184
  default: () => {};
182
185
  };
183
186
  showValid: {
@@ -205,10 +208,10 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
205
208
  type: "number" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "time" | "datetime-local" | "month" | "week" | "color" | "select" | "checkbox" | "radio" | "textarea" | "radioGroup" | "checkboxGroup" | "combobox" | "custom";
206
209
  readonly: boolean;
207
210
  props: [{
208
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
211
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
209
212
  default: () => {};
210
213
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
211
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
214
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
212
215
  default: () => {};
213
216
  };
214
217
  is: string | import('vue').Component;
@@ -219,15 +222,15 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
219
222
  [key: string]: any;
220
223
  default: {
221
224
  errors: import('zod').inferFormattedError<Schema, string>;
222
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
225
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
223
226
  formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
224
227
  invalid: boolean;
225
228
  invalidLabel?: string[];
226
229
  modelValue: any;
227
230
  onUpdate: (value: unknown) => void;
228
231
  readonly: boolean;
229
- submit?: InjectedFormData<Schema_1>["submit"];
230
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
232
+ submit?: InjectedFormData<Schema_2, Type_2>["submit"];
233
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
231
234
  };
232
235
  }>, {}, {}, "invalid" | "type" | "errors" | "component" | "hasProps" | "invalidLabel" | "is", import('vue').ComponentProvideOptions, true, {}, any>;
233
236
  VvFormFieldsGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -236,11 +239,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
236
239
  default: undefined;
237
240
  };
238
241
  names: {
239
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>[] | Record<string, Path<import('zod').TypeOf<Schema>>>>;
242
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
240
243
  required: true;
241
244
  };
242
245
  props: {
243
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
246
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
244
247
  default: () => {};
245
248
  };
246
249
  showValid: {
@@ -248,7 +251,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
248
251
  default: boolean;
249
252
  };
250
253
  defaultValues: {
251
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
254
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
252
255
  default: undefined;
253
256
  };
254
257
  readonly: {
@@ -277,11 +280,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
277
280
  default: undefined;
278
281
  };
279
282
  names: {
280
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>[] | Record<string, Path<import('zod').TypeOf<Schema>>>>;
283
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
281
284
  required: true;
282
285
  };
283
286
  props: {
284
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
287
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
285
288
  default: () => {};
286
289
  };
287
290
  showValid: {
@@ -289,7 +292,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
289
292
  default: boolean;
290
293
  };
291
294
  defaultValues: {
292
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
295
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
293
296
  default: undefined;
294
297
  };
295
298
  readonly: {
@@ -304,26 +307,26 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
304
307
  }>, {
305
308
  readonly: boolean;
306
309
  props: [{
307
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
310
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
308
311
  default: () => {};
309
312
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
310
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
313
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
311
314
  default: () => {};
312
315
  };
313
316
  is: string | import('vue').Component;
314
317
  showValid: boolean;
315
318
  defaultValues: [{
316
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
319
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
317
320
  default: undefined;
318
321
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
319
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
322
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
320
323
  default: undefined;
321
324
  };
322
325
  }, import('vue').SlotsType<{
323
326
  [key: string]: any;
324
327
  default: {
325
328
  errors?: Record<Path<import('zod').TypeOf<Schema>>, import('zod').inferFormattedError<Schema, string>> | undefined;
326
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
329
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
327
330
  formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
328
331
  invalid: boolean;
329
332
  invalids: Record<string, boolean>;
@@ -332,13 +335,13 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
332
335
  onUpdate: (value: Record<string, any>) => void;
333
336
  onUpdateField: (name: string, value: any) => void;
334
337
  readonly: boolean;
335
- submit?: InjectedFormData<Schema_2>["submit"];
336
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
338
+ submit?: InjectedFormData<Schema_3, Type_3>["submit"];
339
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
337
340
  };
338
341
  }>, {}, {}, "invalid" | "errors" | "component" | "hasProps" | "is" | "invalidLabels", import('vue').ComponentProvideOptions, true, {}, any>;
339
342
  VvFormTemplate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
340
343
  schema: {
341
- type: import('vue').PropType<FormTemplate<Schema>>;
344
+ type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
342
345
  required: true;
343
346
  };
344
347
  scope: {
@@ -351,7 +354,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
351
354
  [key: string]: any;
352
355
  }>[] | undefined)[]) | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
353
356
  schema: {
354
- type: import('vue').PropType<FormTemplate<Schema>>;
357
+ type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
355
358
  required: true;
356
359
  };
357
360
  scope: {
@@ -363,13 +366,13 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
363
366
  }, import('vue').SlotsType<{
364
367
  default: {
365
368
  errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
366
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
369
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
367
370
  invalid: boolean;
368
371
  status?: import('./enums').FormStatus;
369
- submit?: InjectedFormData<Schema_3>["submit"];
370
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
371
- clear?: InjectedFormData<Schema_3>["clear"];
372
- reset?: InjectedFormData<Schema_3>["reset"];
372
+ submit?: InjectedFormData<Schema_4, Type_4>["submit"];
373
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
374
+ clear?: InjectedFormData<Schema_4, Type_4>["clear"];
375
+ reset?: InjectedFormData<Schema_4, Type_4>["reset"];
373
376
  };
374
377
  }>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
375
378
  VvFormWrapper: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -384,13 +387,13 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
384
387
  }>, {
385
388
  clear: (() => void) | undefined;
386
389
  errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
387
- fields: import('vue').Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
390
+ fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
388
391
  fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
389
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema>> | undefined, Partial<import('zod').TypeOf<Schema>> | undefined> | undefined;
392
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
390
393
  invalid: import('vue').ComputedRef<boolean>;
391
394
  reset: (() => void) | undefined;
392
395
  submit: (() => Promise<boolean>) | undefined;
393
- validate: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
396
+ validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
394
397
  validateWrapper: () => Promise<boolean>;
395
398
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
396
399
  name: {
@@ -409,27 +412,27 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
409
412
  }, import('vue').SlotsType<{
410
413
  default: {
411
414
  errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
412
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
415
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
413
416
  formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
414
417
  invalid: boolean;
415
- submit?: InjectedFormData<Schema_4>["submit"];
416
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
418
+ submit?: InjectedFormData<Schema_5, Type_5>["submit"];
419
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
417
420
  validateWrapper?: (() => Promise<boolean>) | undefined;
418
421
  fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
419
- clear?: InjectedFormData<Schema_4>["clear"];
420
- reset?: InjectedFormData<Schema_4>["reset"];
422
+ clear?: InjectedFormData<Schema_5, Type_5>["clear"];
423
+ reset?: InjectedFormData<Schema_5, Type_5>["reset"];
421
424
  };
422
425
  }>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>;
423
426
  } | {
424
427
  clear: () => void;
425
428
  errors: import('vue').Ref<import('zod').inferFormattedError<AnyZodObject, string> | undefined, import('zod').inferFormattedError<AnyZodObject, string> | undefined>;
426
- formData: import('vue').Ref<Partial<{
429
+ formData: import('vue').Ref<(undefined extends Type ? Partial<{
427
430
  [x: string]: any;
428
- } | undefined>, Partial<{
431
+ }> : Type) | undefined, (undefined extends Type ? Partial<{
429
432
  [x: string]: any;
430
- } | undefined>>;
433
+ }> : Type) | undefined>;
431
434
  formFieldInjectionKey: InjectionKey<InjectedFormFieldData<AnyZodObject>>;
432
- formInjectionKey: InjectionKey<InjectedFormData<AnyZodObject>>;
435
+ formInjectionKey: InjectionKey<InjectedFormData<AnyZodObject, Type>>;
433
436
  formWrapperInjectionKey: InjectionKey<InjectedFormWrapperData<AnyZodObject>>;
434
437
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
435
438
  invalid: import('vue').ComputedRef<boolean>;
@@ -438,9 +441,10 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
438
441
  status: import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>;
439
442
  stopUpdatesWatch: import('vue').WatchStopHandle;
440
443
  submit: () => Promise<boolean>;
441
- validate: (value?: Partial<{
444
+ validate: (value?: (undefined extends Type ? Partial<{
442
445
  [x: string]: any;
443
- } | undefined>, fields?: Set<string>) => Promise<boolean>;
446
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
447
+ wrappers: Map<string, InjectedFormWrapperData<AnyZodObject>>;
444
448
  VvForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
445
449
  continuousValidation: {
446
450
  type: BooleanConstructor;
@@ -459,7 +463,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
459
463
  default: string;
460
464
  };
461
465
  template: {
462
- type: import('vue').PropType<FormTemplate<AnyZodObject>>;
466
+ type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
463
467
  default: undefined;
464
468
  };
465
469
  }>, {
@@ -475,11 +479,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
475
479
  } | undefined;
476
480
  readonly _errors: readonly string[];
477
481
  } | undefined>>;
478
- formData: import('vue').Ref<Partial<{
482
+ formData: import('vue').Ref<(undefined extends Type ? Partial<{
479
483
  [x: string]: any;
480
- } | undefined>, Partial<{
484
+ }> : Type) | undefined, (undefined extends Type ? Partial<{
481
485
  [x: string]: any;
482
- } | undefined>>;
486
+ }> : Type) | undefined>;
483
487
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
484
488
  invalid: import('vue').ComputedRef<boolean>;
485
489
  isReadonly: import('vue').Ref<boolean, boolean>;
@@ -487,9 +491,10 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
487
491
  status: Readonly<import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>>;
488
492
  stopUpdatesWatch: import('vue').WatchStopHandle;
489
493
  submit: () => Promise<boolean>;
490
- validate: (value?: Partial<{
494
+ validate: (value?: (undefined extends Type ? Partial<{
491
495
  [x: string]: any;
492
- } | undefined>, fields?: Set<string>) => Promise<boolean>;
496
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
497
+ wrappers: Map<string, InjectedFormWrapperData<AnyZodObject>>;
493
498
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly")[], "invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
494
499
  continuousValidation: {
495
500
  type: BooleanConstructor;
@@ -508,7 +513,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
508
513
  default: string;
509
514
  };
510
515
  template: {
511
- type: import('vue').PropType<FormTemplate<AnyZodObject>>;
516
+ type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
512
517
  default: undefined;
513
518
  };
514
519
  }>> & Readonly<{
@@ -521,7 +526,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
521
526
  }>, {
522
527
  readonly: boolean;
523
528
  tag: string;
524
- template: FormTemplate<AnyZodObject>;
529
+ template: FormTemplate<AnyZodObject, Type>;
525
530
  continuousValidation: boolean;
526
531
  modelValue: Record<string, any>;
527
532
  }, import('vue').SlotsType<{
@@ -537,22 +542,23 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
537
542
  } | undefined;
538
543
  readonly _errors: readonly string[];
539
544
  } | undefined>>;
540
- formData: import('vue').Ref<Partial<{
545
+ formData: import('vue').Ref<(undefined extends Type ? Partial<{
541
546
  [x: string]: any;
542
- } | undefined>, Partial<{
547
+ }> : Type) | undefined, (undefined extends Type ? Partial<{
543
548
  [x: string]: any;
544
- } | undefined>>;
549
+ }> : Type) | undefined>;
545
550
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
546
551
  invalid: import('vue').ComputedRef<boolean>;
547
552
  readonly: import('vue').Ref<boolean, boolean>;
548
553
  status: Readonly<import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>>;
549
554
  stopUpdatesWatch: import('vue').WatchStopHandle;
550
555
  submit: () => Promise<boolean>;
551
- validate: (value?: Partial<{
556
+ validate: (value?: (undefined extends Type ? Partial<{
552
557
  [x: string]: any;
553
- } | undefined>, fields?: Set<string>) => Promise<boolean>;
558
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
554
559
  clear: () => void;
555
560
  reset: () => void;
561
+ wrappers: Map<string, InjectedFormWrapperData<AnyZodObject>>;
556
562
  };
557
563
  }>, {}, {}, "invalid" | "valid" | "reset" | "status" | "readonly" | "clear" | "submit" | "errors" | "tag" | "template" | "validate", import('vue').ComponentProvideOptions, true, {}, any>;
558
564
  VvFormField: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -566,15 +572,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
566
572
  default: undefined;
567
573
  };
568
574
  name: {
569
- type: import('vue').PropType<string>;
575
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
570
576
  required: true;
571
577
  };
572
578
  props: {
573
- type: import('vue').PropType<Partial<{
574
- [x: string]: any;
575
- } | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<{
576
- [x: string]: any;
577
- }> | undefined) | undefined>>;
579
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
578
580
  default: () => {};
579
581
  };
580
582
  showValid: {
@@ -622,15 +624,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
622
624
  default: undefined;
623
625
  };
624
626
  name: {
625
- type: import('vue').PropType<string>;
627
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
626
628
  required: true;
627
629
  };
628
630
  props: {
629
- type: import('vue').PropType<Partial<{
630
- [x: string]: any;
631
- } | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<{
632
- [x: string]: any;
633
- }> | undefined) | undefined>>;
631
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
634
632
  default: () => {};
635
633
  };
636
634
  showValid: {
@@ -670,9 +668,9 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
670
668
  [key: string]: any;
671
669
  default: {
672
670
  errors: import('zod').inferFormattedError<AnyZodObject, string>;
673
- formData?: Partial<{
671
+ formData?: (undefined extends Type ? Partial<{
674
672
  [x: string]: any;
675
- }> | undefined;
673
+ }> : Type) | undefined;
676
674
  formErrors?: {
677
675
  readonly [x: string]: {
678
676
  readonly _errors: readonly string[];
@@ -684,10 +682,10 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
684
682
  modelValue: any;
685
683
  onUpdate: (value: unknown) => void;
686
684
  readonly: boolean;
687
- submit?: InjectedFormData<Schema_1>["submit"];
688
- validate?: ((formData?: Partial<{
685
+ submit?: InjectedFormData<Schema_2, Type_2>["submit"];
686
+ validate?: ((formData?: (undefined extends Type ? Partial<{
689
687
  [x: string]: any;
690
- }> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
688
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
691
689
  };
692
690
  }>, {}, {}, "invalid" | "type" | "errors" | "component" | "hasProps" | "invalidLabel" | "is", import('vue').ComponentProvideOptions, true, {}, any>;
693
691
  VvFormFieldsGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -696,15 +694,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
696
694
  default: undefined;
697
695
  };
698
696
  names: {
699
- type: import('vue').PropType<string[] | Record<string, string>>;
697
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
700
698
  required: true;
701
699
  };
702
700
  props: {
703
- type: import('vue').PropType<Partial<{
704
- [x: string]: any;
705
- } | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<{
706
- [x: string]: any;
707
- }> | undefined) | undefined>>;
701
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
708
702
  default: () => {};
709
703
  };
710
704
  showValid: {
@@ -712,7 +706,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
712
706
  default: boolean;
713
707
  };
714
708
  defaultValues: {
715
- type: import('vue').PropType<Record<string, any>>;
709
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
716
710
  default: undefined;
717
711
  };
718
712
  readonly: {
@@ -741,15 +735,11 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
741
735
  default: undefined;
742
736
  };
743
737
  names: {
744
- type: import('vue').PropType<string[] | Record<string, string>>;
738
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
745
739
  required: true;
746
740
  };
747
741
  props: {
748
- type: import('vue').PropType<Partial<{
749
- [x: string]: any;
750
- } | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<{
751
- [x: string]: any;
752
- }> | undefined) | undefined>>;
742
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
753
743
  default: () => {};
754
744
  };
755
745
  showValid: {
@@ -757,7 +747,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
757
747
  default: boolean;
758
748
  };
759
749
  defaultValues: {
760
- type: import('vue').PropType<Record<string, any>>;
750
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
761
751
  default: undefined;
762
752
  };
763
753
  readonly: {
@@ -783,9 +773,9 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
783
773
  [key: string]: any;
784
774
  default: {
785
775
  errors?: Record<string, import('zod').inferFormattedError<AnyZodObject, string>> | undefined;
786
- formData?: Partial<{
776
+ formData?: (undefined extends Type ? Partial<{
787
777
  [x: string]: any;
788
- }> | undefined;
778
+ }> : Type) | undefined;
789
779
  formErrors?: {
790
780
  readonly [x: string]: {
791
781
  readonly _errors: readonly string[];
@@ -799,15 +789,15 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
799
789
  onUpdate: (value: Record<string, any>) => void;
800
790
  onUpdateField: (name: string, value: any) => void;
801
791
  readonly: boolean;
802
- submit?: InjectedFormData<Schema_2>["submit"];
803
- validate?: ((formData?: Partial<{
792
+ submit?: InjectedFormData<Schema_3, Type_3>["submit"];
793
+ validate?: ((formData?: (undefined extends Type ? Partial<{
804
794
  [x: string]: any;
805
- }> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
795
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
806
796
  };
807
797
  }>, {}, {}, "invalid" | "errors" | "component" | "hasProps" | "is" | "invalidLabels", import('vue').ComponentProvideOptions, true, {}, any>;
808
798
  VvFormTemplate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
809
799
  schema: {
810
- type: import('vue').PropType<FormTemplate<AnyZodObject>>;
800
+ type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
811
801
  required: true;
812
802
  };
813
803
  scope: {
@@ -820,7 +810,7 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
820
810
  [key: string]: any;
821
811
  }>[] | undefined)[]) | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
822
812
  schema: {
823
- type: import('vue').PropType<FormTemplate<AnyZodObject>>;
813
+ type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
824
814
  required: true;
825
815
  };
826
816
  scope: {
@@ -837,17 +827,17 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
837
827
  } | undefined;
838
828
  readonly _errors: readonly string[];
839
829
  } | undefined;
840
- formData?: Partial<{
830
+ formData?: (undefined extends Type ? Partial<{
841
831
  [x: string]: any;
842
- }> | undefined;
832
+ }> : Type) | undefined;
843
833
  invalid: boolean;
844
834
  status?: import('./enums').FormStatus;
845
- submit?: InjectedFormData<Schema_3>["submit"];
846
- validate?: ((formData?: Partial<{
835
+ submit?: InjectedFormData<Schema_4, Type_4>["submit"];
836
+ validate?: ((formData?: (undefined extends Type ? Partial<{
847
837
  [x: string]: any;
848
- }> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
849
- clear?: InjectedFormData<Schema_3>["clear"];
850
- reset?: InjectedFormData<Schema_3>["reset"];
838
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
839
+ clear?: InjectedFormData<Schema_4, Type_4>["clear"];
840
+ reset?: InjectedFormData<Schema_4, Type_4>["reset"];
851
841
  };
852
842
  }>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
853
843
  VvFormWrapper: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -872,19 +862,19 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
872
862
  } | undefined;
873
863
  readonly _errors: readonly string[];
874
864
  } | undefined>> | undefined;
875
- fields: import('vue').Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
865
+ fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
876
866
  fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<AnyZodObject, string>>, Map<string, import('zod').inferFormattedError<AnyZodObject, string>>>;
877
- formData: import('vue').Ref<Partial<{
867
+ formData: import('vue').Ref<(undefined extends Type ? Partial<{
878
868
  [x: string]: any;
879
- }> | undefined, Partial<{
869
+ }> : Type) | undefined, (undefined extends Type ? Partial<{
880
870
  [x: string]: any;
881
- }> | undefined> | undefined;
871
+ }> : Type) | undefined> | undefined;
882
872
  invalid: import('vue').ComputedRef<boolean>;
883
873
  reset: (() => void) | undefined;
884
874
  submit: (() => Promise<boolean>) | undefined;
885
- validate: ((formData?: Partial<{
875
+ validate: ((formData?: (undefined extends Type ? Partial<{
886
876
  [x: string]: any;
887
- }> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
877
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
888
878
  validateWrapper: () => Promise<boolean>;
889
879
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
890
880
  name: {
@@ -908,9 +898,9 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
908
898
  } | undefined;
909
899
  readonly _errors: readonly string[];
910
900
  } | undefined;
911
- formData?: Partial<{
901
+ formData?: (undefined extends Type ? Partial<{
912
902
  [x: string]: any;
913
- }> | undefined;
903
+ }> : Type) | undefined;
914
904
  formErrors?: {
915
905
  readonly [x: string]: {
916
906
  readonly _errors: readonly string[];
@@ -918,14 +908,14 @@ export declare function useForm<Schema extends FormSchema>(schema: Schema, optio
918
908
  readonly _errors: readonly string[];
919
909
  } | undefined;
920
910
  invalid: boolean;
921
- submit?: InjectedFormData<Schema_4>["submit"];
922
- validate?: ((formData?: Partial<{
911
+ submit?: InjectedFormData<Schema_5, Type_5>["submit"];
912
+ validate?: ((formData?: (undefined extends Type ? Partial<{
923
913
  [x: string]: any;
924
- }> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
914
+ }> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
925
915
  validateWrapper?: (() => Promise<boolean>) | undefined;
926
916
  fieldsErrors: Map<string, import('zod').inferFormattedError<AnyZodObject, string>>;
927
- clear?: InjectedFormData<Schema_4>["clear"];
928
- reset?: InjectedFormData<Schema_4>["reset"];
917
+ clear?: InjectedFormData<Schema_5, Type_5>["clear"];
918
+ reset?: InjectedFormData<Schema_5, Type_5>["reset"];
929
919
  };
930
920
  }>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>;
931
921
  };
@@ -940,12 +930,12 @@ export type { FormComponent, FormComposableOptions, FormFieldComponent, FormFiel
940
930
  /**
941
931
  * @deprecated Use `useForm()` instead
942
932
  */
943
- export declare function formFactory<Schema extends FormSchema>(schema: Schema, options?: FormComposableOptions<Schema>): {
933
+ export declare function formType<Schema extends FormSchema, Type>(schema: Schema, options?: FormComposableOptions<Schema, Type>): {
944
934
  clear: () => void;
945
935
  errors: import('vue').Ref<import('zod').inferFormattedError<Schema, string> | undefined, import('zod').inferFormattedError<Schema, string> | undefined>;
946
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema> | undefined>, Partial<import('zod').TypeOf<Schema> | undefined>>;
936
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined>;
947
937
  formFieldInjectionKey: InjectionKey<InjectedFormFieldData<Schema>>;
948
- formInjectionKey: InjectionKey<InjectedFormData<Schema>>;
938
+ formInjectionKey: InjectionKey<InjectedFormData<Schema, Type>>;
949
939
  formWrapperInjectionKey: InjectionKey<InjectedFormWrapperData<Schema>>;
950
940
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
951
941
  invalid: import('vue').ComputedRef<boolean>;
@@ -954,7 +944,8 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
954
944
  status: import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>;
955
945
  stopUpdatesWatch: import('vue').WatchStopHandle;
956
946
  submit: () => Promise<boolean>;
957
- validate: (value?: Partial<import('zod').TypeOf<Schema> | undefined>, fields?: Set<string>) => Promise<boolean>;
947
+ validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
948
+ wrappers: Map<string, InjectedFormWrapperData<Schema>>;
958
949
  VvForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
959
950
  continuousValidation: {
960
951
  type: BooleanConstructor;
@@ -973,13 +964,13 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
973
964
  default: string;
974
965
  };
975
966
  template: {
976
- type: import('vue').PropType<FormTemplate<Schema>>;
967
+ type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
977
968
  default: undefined;
978
969
  };
979
970
  }>, {
980
971
  clear: () => void;
981
972
  errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>>;
982
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema> | undefined>, Partial<import('zod').TypeOf<Schema> | undefined>>;
973
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined>;
983
974
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
984
975
  invalid: import('vue').ComputedRef<boolean>;
985
976
  isReadonly: import('vue').Ref<boolean, boolean>;
@@ -987,7 +978,8 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
987
978
  status: Readonly<import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>>;
988
979
  stopUpdatesWatch: import('vue').WatchStopHandle;
989
980
  submit: () => Promise<boolean>;
990
- validate: (value?: Partial<import('zod').TypeOf<Schema> | undefined>, fields?: Set<string>) => Promise<boolean>;
981
+ validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
982
+ wrappers: Map<string, InjectedFormWrapperData<Schema>>;
991
983
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly")[], "invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
992
984
  continuousValidation: {
993
985
  type: BooleanConstructor;
@@ -1006,7 +998,7 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1006
998
  default: string;
1007
999
  };
1008
1000
  template: {
1009
- type: import('vue').PropType<FormTemplate<Schema>>;
1001
+ type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
1010
1002
  default: undefined;
1011
1003
  };
1012
1004
  }>> & Readonly<{
@@ -1019,22 +1011,23 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1019
1011
  }>, {
1020
1012
  readonly: boolean;
1021
1013
  tag: string;
1022
- template: FormTemplate<Schema>;
1014
+ template: FormTemplate<Schema, Type>;
1023
1015
  continuousValidation: boolean;
1024
1016
  modelValue: Record<string, any>;
1025
1017
  }, import('vue').SlotsType<{
1026
1018
  default: {
1027
1019
  errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>>;
1028
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema> | undefined>, Partial<import('zod').TypeOf<Schema> | undefined>>;
1020
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined>;
1029
1021
  ignoreUpdates: import('@vueuse/core').IgnoredUpdater;
1030
1022
  invalid: import('vue').ComputedRef<boolean>;
1031
1023
  readonly: import('vue').Ref<boolean, boolean>;
1032
1024
  status: Readonly<import('vue').Ref<import('./enums').FormStatus | undefined, import('./enums').FormStatus | undefined>>;
1033
1025
  stopUpdatesWatch: import('vue').WatchStopHandle;
1034
1026
  submit: () => Promise<boolean>;
1035
- validate: (value?: Partial<import('zod').TypeOf<Schema> | undefined>, fields?: Set<string>) => Promise<boolean>;
1027
+ validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
1036
1028
  clear: () => void;
1037
1029
  reset: () => void;
1030
+ wrappers: Map<string, InjectedFormWrapperData<Schema>>;
1038
1031
  };
1039
1032
  }>, {}, {}, "invalid" | "valid" | "reset" | "status" | "readonly" | "clear" | "submit" | "errors" | "tag" | "template" | "validate", import('vue').ComponentProvideOptions, true, {}, any>;
1040
1033
  VvFormField: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -1048,11 +1041,11 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1048
1041
  default: undefined;
1049
1042
  };
1050
1043
  name: {
1051
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
1044
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
1052
1045
  required: true;
1053
1046
  };
1054
1047
  props: {
1055
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1048
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
1056
1049
  default: () => {};
1057
1050
  };
1058
1051
  showValid: {
@@ -1080,10 +1073,10 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1080
1073
  } | import('vue').ConcreteComponent>;
1081
1074
  hasProps: import('vue').ComputedRef<{
1082
1075
  name: {} | ([{
1083
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
1076
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
1084
1077
  required: true;
1085
1078
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
1086
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
1079
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
1087
1080
  required: true;
1088
1081
  });
1089
1082
  invalid: boolean;
@@ -1106,11 +1099,11 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1106
1099
  default: undefined;
1107
1100
  };
1108
1101
  name: {
1109
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>>;
1102
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
1110
1103
  required: true;
1111
1104
  };
1112
1105
  props: {
1113
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1106
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
1114
1107
  default: () => {};
1115
1108
  };
1116
1109
  showValid: {
@@ -1138,10 +1131,10 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1138
1131
  type: "number" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "time" | "datetime-local" | "month" | "week" | "color" | "select" | "checkbox" | "radio" | "textarea" | "radioGroup" | "checkboxGroup" | "combobox" | "custom";
1139
1132
  readonly: boolean;
1140
1133
  props: [{
1141
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1134
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
1142
1135
  default: () => {};
1143
1136
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
1144
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1137
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
1145
1138
  default: () => {};
1146
1139
  };
1147
1140
  is: string | import('vue').Component;
@@ -1152,15 +1145,15 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1152
1145
  [key: string]: any;
1153
1146
  default: {
1154
1147
  errors: import('zod').inferFormattedError<Schema, string>;
1155
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
1148
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
1156
1149
  formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
1157
1150
  invalid: boolean;
1158
1151
  invalidLabel?: string[];
1159
1152
  modelValue: any;
1160
1153
  onUpdate: (value: unknown) => void;
1161
1154
  readonly: boolean;
1162
- submit?: InjectedFormData<Schema_1>["submit"];
1163
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1155
+ submit?: InjectedFormData<Schema_2, Type_2>["submit"];
1156
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1164
1157
  };
1165
1158
  }>, {}, {}, "invalid" | "type" | "errors" | "component" | "hasProps" | "invalidLabel" | "is", import('vue').ComponentProvideOptions, true, {}, any>;
1166
1159
  VvFormFieldsGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -1169,11 +1162,11 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1169
1162
  default: undefined;
1170
1163
  };
1171
1164
  names: {
1172
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>[] | Record<string, Path<import('zod').TypeOf<Schema>>>>;
1165
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
1173
1166
  required: true;
1174
1167
  };
1175
1168
  props: {
1176
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1169
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
1177
1170
  default: () => {};
1178
1171
  };
1179
1172
  showValid: {
@@ -1181,7 +1174,7 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1181
1174
  default: boolean;
1182
1175
  };
1183
1176
  defaultValues: {
1184
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
1177
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
1185
1178
  default: undefined;
1186
1179
  };
1187
1180
  readonly: {
@@ -1210,11 +1203,11 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1210
1203
  default: undefined;
1211
1204
  };
1212
1205
  names: {
1213
- type: import('vue').PropType<Path<import('zod').TypeOf<Schema>>[] | Record<string, Path<import('zod').TypeOf<Schema>>>>;
1206
+ type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
1214
1207
  required: true;
1215
1208
  };
1216
1209
  props: {
1217
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1210
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
1218
1211
  default: () => {};
1219
1212
  };
1220
1213
  showValid: {
@@ -1222,7 +1215,7 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1222
1215
  default: boolean;
1223
1216
  };
1224
1217
  defaultValues: {
1225
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
1218
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
1226
1219
  default: undefined;
1227
1220
  };
1228
1221
  readonly: {
@@ -1237,26 +1230,26 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1237
1230
  }>, {
1238
1231
  readonly: boolean;
1239
1232
  props: [{
1240
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1233
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
1241
1234
  default: () => {};
1242
1235
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
1243
- type: import('vue').PropType<Partial<import('zod').TypeOf<Schema> | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema>> | undefined) | undefined>>;
1236
+ type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
1244
1237
  default: () => {};
1245
1238
  };
1246
1239
  is: string | import('vue').Component;
1247
1240
  showValid: boolean;
1248
1241
  defaultValues: [{
1249
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
1242
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
1250
1243
  default: undefined;
1251
1244
  }] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
1252
- type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema>>, any>>;
1245
+ type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
1253
1246
  default: undefined;
1254
1247
  };
1255
1248
  }, import('vue').SlotsType<{
1256
1249
  [key: string]: any;
1257
1250
  default: {
1258
1251
  errors?: Record<Path<import('zod').TypeOf<Schema>>, import('zod').inferFormattedError<Schema, string>> | undefined;
1259
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
1252
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
1260
1253
  formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
1261
1254
  invalid: boolean;
1262
1255
  invalids: Record<string, boolean>;
@@ -1265,13 +1258,13 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1265
1258
  onUpdate: (value: Record<string, any>) => void;
1266
1259
  onUpdateField: (name: string, value: any) => void;
1267
1260
  readonly: boolean;
1268
- submit?: InjectedFormData<Schema_2>["submit"];
1269
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1261
+ submit?: InjectedFormData<Schema_3, Type_3>["submit"];
1262
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1270
1263
  };
1271
1264
  }>, {}, {}, "invalid" | "errors" | "component" | "hasProps" | "is" | "invalidLabels", import('vue').ComponentProvideOptions, true, {}, any>;
1272
1265
  VvFormTemplate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1273
1266
  schema: {
1274
- type: import('vue').PropType<FormTemplate<Schema>>;
1267
+ type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
1275
1268
  required: true;
1276
1269
  };
1277
1270
  scope: {
@@ -1284,7 +1277,7 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1284
1277
  [key: string]: any;
1285
1278
  }>[] | undefined)[]) | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1286
1279
  schema: {
1287
- type: import('vue').PropType<FormTemplate<Schema>>;
1280
+ type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
1288
1281
  required: true;
1289
1282
  };
1290
1283
  scope: {
@@ -1296,13 +1289,13 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1296
1289
  }, import('vue').SlotsType<{
1297
1290
  default: {
1298
1291
  errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
1299
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
1292
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
1300
1293
  invalid: boolean;
1301
1294
  status?: import('./enums').FormStatus;
1302
- submit?: InjectedFormData<Schema_3>["submit"];
1303
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1304
- clear?: InjectedFormData<Schema_3>["clear"];
1305
- reset?: InjectedFormData<Schema_3>["reset"];
1295
+ submit?: InjectedFormData<Schema_4, Type_4>["submit"];
1296
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1297
+ clear?: InjectedFormData<Schema_4, Type_4>["clear"];
1298
+ reset?: InjectedFormData<Schema_4, Type_4>["reset"];
1306
1299
  };
1307
1300
  }>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1308
1301
  VvFormWrapper: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -1317,13 +1310,13 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1317
1310
  }>, {
1318
1311
  clear: (() => void) | undefined;
1319
1312
  errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
1320
- fields: import('vue').Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
1313
+ fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
1321
1314
  fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
1322
- formData: import('vue').Ref<Partial<import('zod').TypeOf<Schema>> | undefined, Partial<import('zod').TypeOf<Schema>> | undefined> | undefined;
1315
+ formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
1323
1316
  invalid: import('vue').ComputedRef<boolean>;
1324
1317
  reset: (() => void) | undefined;
1325
1318
  submit: (() => Promise<boolean>) | undefined;
1326
- validate: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1319
+ validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1327
1320
  validateWrapper: () => Promise<boolean>;
1328
1321
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1329
1322
  name: {
@@ -1342,15 +1335,15 @@ export declare function formFactory<Schema extends FormSchema>(schema: Schema, o
1342
1335
  }, import('vue').SlotsType<{
1343
1336
  default: {
1344
1337
  errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
1345
- formData?: Partial<import('zod').TypeOf<Schema>> | undefined;
1338
+ formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
1346
1339
  formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
1347
1340
  invalid: boolean;
1348
- submit?: InjectedFormData<Schema_4>["submit"];
1349
- validate?: ((formData?: Partial<import('zod').TypeOf<Schema>> | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1341
+ submit?: InjectedFormData<Schema_5, Type_5>["submit"];
1342
+ validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
1350
1343
  validateWrapper?: (() => Promise<boolean>) | undefined;
1351
1344
  fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
1352
- clear?: InjectedFormData<Schema_4>["clear"];
1353
- reset?: InjectedFormData<Schema_4>["reset"];
1345
+ clear?: InjectedFormData<Schema_5, Type_5>["clear"];
1346
+ reset?: InjectedFormData<Schema_5, Type_5>["reset"];
1354
1347
  };
1355
1348
  }>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>;
1356
1349
  };