reykit 1.0.103 → 1.0.104
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.
- package/dist/index.js +695 -691
- package/dist/src/react.d.ts +5 -4
- package/package.json +1 -1
package/dist/src/react.d.ts
CHANGED
|
@@ -33,13 +33,14 @@ export declare function useCount(start?: number, step?: number, stop?: number, l
|
|
|
33
33
|
* @returns Returns a stateful index value, and a function to automatic count it.
|
|
34
34
|
*/
|
|
35
35
|
export declare function useIndex(array: any[], loop?: boolean): [number, () => void];
|
|
36
|
+
/**
|
|
37
|
+
* Force update render.
|
|
38
|
+
*/
|
|
39
|
+
export declare function useRender(): () => void;
|
|
36
40
|
/**
|
|
37
41
|
* Whether is mobile.
|
|
38
42
|
*
|
|
39
43
|
* @returns Judgement.
|
|
40
44
|
*/
|
|
41
45
|
export declare function useIsMobile(): boolean;
|
|
42
|
-
|
|
43
|
-
* Force update render.
|
|
44
|
-
*/
|
|
45
|
-
export declare function useRender(): () => void;
|
|
46
|
+
export declare function useValueByMobile<Value, MobileValue>(value: Value, mobileValue: MobileValue): Value | MobileValue;
|