@anjianshi/utils 2.8.4 → 2.8.5

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
1
  /**
2
2
  * 生成一个 state 以及与其值同步的 ref
3
3
  */
4
- export declare function useStateWithRef<T>(initialValue: T | (() => T)): readonly [T, (value: T | ((prevState: T) => T)) => void, import("react").RefObject<T>];
4
+ export declare function useStateWithRef<T>(initialValue: T | (() => T)): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>, import("react").RefObject<T>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anjianshi/utils",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "description": "Common JavaScript Utils",
5
5
  "homepage": "https://github.com/anjianshi/js-packages/utils",
6
6
  "bugs": {
@@ -32,8 +32,8 @@
32
32
  "typescript": "^5.8.3",
33
33
  "vconsole": "^3.15.1",
34
34
  "@anjianshi/presets-eslint-base": "6.0.0",
35
- "@anjianshi/presets-eslint-react": "6.0.0",
36
35
  "@anjianshi/presets-eslint-node": "6.0.0",
36
+ "@anjianshi/presets-eslint-react": "6.0.0",
37
37
  "@anjianshi/presets-eslint-typescript": "6.0.0",
38
38
  "@anjianshi/presets-prettier": "3.0.4",
39
39
  "@anjianshi/presets-typescript": "3.2.4"