mhz-helpers 1.2.7 → 1.2.9

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,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { RuleItem } from 'async-validator';
3
- type TLocale = 'ru' | 'en';
3
+ import { TLocale } from '../locales/types';
4
4
  export declare function useValidator<T>(formData: Ref<T>, rules: Partial<{
5
5
  [fieldName in keyof T]: (RuleItem | ((locale: TLocale) => RuleItem))[];
6
6
  }>, locale?: TLocale): {
@@ -13,4 +13,3 @@ export declare function email(locale?: TLocale): RuleItem;
13
13
  export declare function letters(locale?: TLocale): RuleItem;
14
14
  export declare function min(value: number, locale?: TLocale): RuleItem;
15
15
  export declare function max(value: number, locale?: TLocale): RuleItem;
16
- export {};
@@ -1,4 +1,4 @@
1
- type TLocale = 'ru' | 'en';
1
+ import { TLocale } from '../locales/types';
2
2
  type TDate = string | Date | null;
3
3
  export declare function addZero(value: number): string;
4
4
  export declare function formatDuration(duration?: number, lang?: TLocale): string;
@@ -3,9 +3,10 @@ export * from './clone';
3
3
  export * from './date';
4
4
  export * from './id';
5
5
  export * from './link';
6
+ export * from './locale';
6
7
  export * from './numbers';
7
8
  export * from './query';
8
9
  export * from './password';
9
- export * from './test';
10
10
  export * from './scroll';
11
- export * from './locale';
11
+ export * from './string';
12
+ export * from './test';
@@ -1 +1,2 @@
1
- export declare function localeField<T>(name: string, locale: string): keyof T;
1
+ import { TLocale } from '../locales/types';
2
+ export declare function localeField<T>(name: string, locale: TLocale): keyof T;
@@ -0,0 +1 @@
1
+ export declare function html(strings: TemplateStringsArray, ...expressions: unknown[]): string;
@@ -0,0 +1 @@
1
+ export {};