mhz-helpers 1.0.46 → 1.0.47

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,4 +1,4 @@
1
- export declare const isAuth: Readonly<import("vue").Ref<boolean>>;
1
+ export declare const isAuth: Readonly<import('vue').Ref<boolean>>;
2
2
  export declare function setAuth(auth: boolean): void;
3
3
  export declare function logout(url: string, deleteAuthHeader: () => void, tokenName: string): void;
4
4
  export declare function setCookieToken(token: string, tokenName: string): void;
@@ -1,4 +1,5 @@
1
1
  import { Ref } from 'vue';
2
+
2
3
  export declare function useInfiniteScroll<T>(): {
3
4
  page: Ref<number>;
4
5
  allData: Ref<T[]>;
@@ -1,4 +1,5 @@
1
1
  import { Ref } from 'vue';
2
+
2
3
  export interface ISortOption {
3
4
  value?: string;
4
5
  isAsc: boolean;
@@ -1,9 +1,10 @@
1
1
  import { Ref } from 'vue';
2
+
2
3
  export declare function usePagination<T>(dataRaw: Ref<{
3
4
  data: T[];
4
5
  total: number;
5
6
  } | undefined>): {
6
- data: import("vue").ComputedRef<T[] | undefined>;
7
- total: import("vue").ComputedRef<number | undefined>;
7
+ data: import('vue').ComputedRef<T[] | undefined>;
8
+ total: import('vue').ComputedRef<number | undefined>;
8
9
  setPage: (pageToSet: number, page: number) => number;
9
10
  };
@@ -1,6 +1,7 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
+
2
3
  export declare function useValidator<T>(formData: Ref<T>, rules: ComputedRef<object>): {
3
4
  error: (field: string) => string | undefined;
4
- errors: ComputedRef<Record<string, import("async-validator").ValidateError[]> | undefined>;
5
+ errors: ComputedRef<Record<string, import('async-validator').ValidateError[]> | undefined>;
5
6
  isValid: () => boolean;
6
7
  };
@@ -1,4 +1,4 @@
1
- export declare const api: import("axios").AxiosStatic;
1
+ export declare const api: import('axios').AxiosStatic;
2
2
  export declare function setBaseURL(url: string): void;
3
3
  export declare function setAuthHeader(token: string): void;
4
4
  export declare function deleteAuthHeader(): void;
@@ -1,4 +1,5 @@
1
- import { QueryClient, type VueQueryPluginOptions } from '@tanstack/vue-query';
1
+ import { QueryClient, VueQueryPluginOptions } from '@tanstack/vue-query';
2
+
2
3
  export declare const queryClient: QueryClient;
3
4
  export declare function vueQueryOptions(toast: {
4
5
  error: (text: string) => void;