@schwarzdavid/ui-kit 0.0.1-alpha.13 → 0.0.1-alpha.15

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.
@@ -1,5 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { PartialDeep } from 'type-fest';
3
+ import { Primitive } from 'type-fest';
3
4
  import { Ref } from 'vue';
4
5
  import { TranslationFunction } from '@vuelidate/validators';
5
6
  import { Validation } from '@vuelidate/core';
@@ -64,7 +65,7 @@ export declare const url: ValidationRuleWithoutParams<any>;
64
65
  export declare const useVuelidateErrors: <T extends object>(validation: Ref<Validation<ValidationArgs<T>, T>>) => ComputedRef<ValidationErrors<T>>;
65
66
 
66
67
  export declare type ValidationErrors<T extends object> = {
67
- [key in keyof T]: T[key] extends object ? ValidationErrors<T[key]> : string[];
68
+ [key in keyof T]: T[key] extends Primitive ? string[] : T[key] extends null | undefined ? ValidationErrors<NonNullable<T[key]>> | undefined : ValidationErrors<NonNullable<T[key]>>;
68
69
  };
69
70
 
70
71
  export declare type ValidationMessageOptions = ValidationTranslationFn | ValidationTranslationTransformOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schwarzdavid/ui-kit",
3
- "version": "0.0.1-alpha.13",
3
+ "version": "0.0.1-alpha.15",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "preview": "vite preview",