vee-validate 4.11.5 → 4.11.6

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.
@@ -372,17 +372,17 @@ type BaseComponentBinds<TValue = any, TModel extends string = 'modelValue'> = Co
372
372
  [k in TModel]: TValue;
373
373
  };
374
374
  type PublicPathState<TValue = unknown> = Omit<PathState<TValue>, 'bails' | 'label' | 'multiple' | 'fieldsCount' | 'validate' | 'id' | 'type' | '__flags'>;
375
- interface ComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject> {
375
+ interface ComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject, TModel extends string = 'modelValue'> {
376
376
  mapProps: (state: PublicPathState<TValue>) => TExtraProps;
377
377
  validateOnBlur: boolean;
378
378
  validateOnModelUpdate: boolean;
379
- model: string;
379
+ model: TModel;
380
380
  }
381
- type LazyComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject> = (state: PublicPathState<TValue>) => Partial<{
381
+ type LazyComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject, TModel extends string = 'modelValue'> = (state: PublicPathState<TValue>) => Partial<{
382
382
  props: TExtraProps;
383
383
  validateOnBlur: boolean;
384
384
  validateOnModelUpdate: boolean;
385
- model: string;
385
+ model: TModel;
386
386
  }>;
387
387
  interface BaseInputBinds<TValue = unknown> {
388
388
  value: TValue | undefined;
@@ -406,7 +406,7 @@ interface FormContext<TValues extends GenericObject = GenericObject, TOutput = T
406
406
  values: TValues;
407
407
  handleReset: () => void;
408
408
  submitForm: (e?: unknown) => Promise<void>;
409
- defineComponentBinds<TPath extends Path<TValues>, TValue = PathValue<TValues, TPath>, TModel extends string = 'modelValue', TExtras extends GenericObject = GenericObject>(path: MaybeRefOrGetter<TPath>, config?: Partial<ComponentBindsConfig<TValue, TExtras>> | LazyComponentBindsConfig<TValue, TExtras>): Ref<BaseComponentBinds<TValue, TModel> & TExtras>;
409
+ defineComponentBinds<TPath extends Path<TValues>, TValue = PathValue<TValues, TPath>, TModel extends string = 'modelValue', TExtras extends GenericObject = GenericObject>(path: MaybeRefOrGetter<TPath>, config?: Partial<ComponentBindsConfig<TValue, TExtras, TModel>> | LazyComponentBindsConfig<TValue, TExtras, TModel>): Ref<BaseComponentBinds<TValue, TModel> & TExtras>;
410
410
  defineInputBinds<TPath extends Path<TValues>, TValue = PathValue<TValues, TPath>, TExtras extends GenericObject = GenericObject>(path: MaybeRefOrGetter<TPath>, config?: Partial<InputBindsConfig<TValue, TExtras>> | LazyInputBindsConfig<TValue, TExtras>): Ref<BaseInputBinds<TValue> & TExtras>;
411
411
  }
412
412
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vee-validate v4.11.5
2
+ * vee-validate v4.11.6
3
3
  * (c) 2023 Abdelrahman Awad
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vee-validate v4.11.5
2
+ * vee-validate v4.11.6
3
3
  * (c) 2023 Abdelrahman Awad
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vee-validate v4.11.5
2
+ * vee-validate v4.11.6
3
3
  * (c) 2023 Abdelrahman Awad
4
4
  * @license MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vee-validate",
3
- "version": "4.11.5",
3
+ "version": "4.11.6",
4
4
  "description": "Form Validation for Vue.js",
5
5
  "author": "Abdelrahman Awad <logaretm1@gmail.com>",
6
6
  "license": "MIT",