elcrm 0.9.174 → 0.9.176

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,16 +1,30 @@
1
1
  export declare namespace Router {
2
- function Load(): Promise<boolean>;
2
+ function Load(): Promise<false | undefined>;
3
3
  function Reset(): void;
4
4
  function Default({ module, page, main, }: any): void;
5
5
  function usePage(): any[];
6
6
  function setPage(o: string, reload?: boolean): Promise<void>;
7
7
  function getPage(): any;
8
8
  function isPage(page: string): boolean;
9
- function useModule(fn?: string | ((name: string) => void)): string[] | undefined;
9
+ /**
10
+ * React hook to get the current module and subscribe to module changes.
11
+ * If `fn` is a string, it is used as the initial module.
12
+ * If `fn` is a function, it is used as the callback when the module changes.
13
+ * If `load` is true, the component will be re-rendered when the module changes.
14
+ * @param {string|((name: string) => void)} [fn] The initial module or the callback.
15
+ * @param {boolean} [load] If true, the component will be re-rendered when the module changes.
16
+ * @returns {[string, boolean]} An array with the current module and a boolean indicating if the module has finished loading.
17
+ */
18
+ function useModule(fn?: string | ((name: string) => void), load?: boolean): [string, boolean] | void;
10
19
  function setModule(module: string, reload?: boolean): Promise<void>;
11
20
  function getModule(): any;
12
21
  function isModule(module: string): boolean;
13
- function useTabs(fn?: string | ((name: string) => void)): string[] | undefined;
22
+ /**
23
+ * @param {string | ((name: string) => void)} [fn] - Optional initial tab or callback function to set the tab.
24
+ * @param {boolean} [load] - If true, the component will be re-rendered when the tabs change.
25
+ * @returns {[string, boolean] | void} - An array with the current tab and a boolean indicating if the tabs have finished loading, or void if a callback is provided.
26
+ */
27
+ function useTabs(fn?: string | ((name: string) => void), load?: boolean): [string, boolean] | void;
14
28
  function setTabs(tabs: string, reload?: boolean): Promise<void>;
15
29
  function getTabs(): any;
16
30
  function isTabs(tab: string): boolean;