reykit 1.0.203 → 1.0.205

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.
@@ -38,9 +38,23 @@ export declare function useIndex(array: any[], loop?: boolean): [number, () => v
38
38
  */
39
39
  export declare function useRender(): () => void;
40
40
  /**
41
- * Whether is mobile.
41
+ * Whether is mobile client.
42
42
  *
43
43
  * @returns Judgement.
44
44
  */
45
45
  export declare function useIsMobile(): boolean;
46
+ /**
47
+ * Get value by client type.
48
+ *
49
+ * @param value - Value of non mobile client.
50
+ * @param mobileValue - Value of mobile client.
51
+ * @returns Value.
52
+ */
46
53
  export declare function useValueByMobile<Value, MobileValue>(value: Value, mobileValue: MobileValue): Value | MobileValue;
54
+ /**
55
+ * Execute once after rendering.
56
+ *
57
+ * @param func - Execute function.
58
+ * @param args - Execute arguments.
59
+ */
60
+ export declare function useExec<T extends any>(func: (...args: T[]) => void | Promise<void>, ...args: T[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.203",
3
+ "version": "1.0.205",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [