parsec-hooks 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- declare const _default: <D extends unknown>(name: string, initState?: D) => (D | import("react").Dispatch<import("react").SetStateAction<D>>)[];
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ declare const _default: <D extends unknown>(name: string, initState?: D) => [D, Dispatch<SetStateAction<D>>];
3
3
  /**
4
4
  * 在每个需要的地方使用传入,得到一个全局的状态,如:
5
5
  * const globalLoading = useGlobalState('globalLoading')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parsec-hooks",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "秒差距前端常用的hooks工具",
5
5
  "author": "mushan0x0",
6
6
  "license": "MIT",