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
|
-
|
2
|
-
declare const _default: <D extends unknown>(name: string, initState?: 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')
|