hlyc-web-pack 3.5.72 → 3.5.74
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/lib/{index.d.ts → components/index.d.ts} +1 -0
- package/lib/components/unrelated/ConfigProvider/index.d.ts +7 -0
- package/lib/hooks/index.d.ts +11 -0
- package/lib/hooks/useDeepCompareEffect/index.d.ts +7 -0
- package/lib/hooks/useMount/index.d.ts +2 -0
- package/lib/hooks/useUnmount/index.d.ts +2 -0
- package/lib/hooks/useUpdateEffect/index.d.ts +4 -0
- package/lib/index.js +4 -4
- package/package.json +4 -2
- /package/lib/{Affix → components/Affix}/index.d.ts +0 -0
- /package/lib/{ButtonGroup → components/ButtonGroup}/index.d.ts +0 -0
- /package/lib/{Dialog → components/Dialog}/index.d.ts +0 -0
- /package/lib/{Empty → components/Empty}/index.d.ts +0 -0
- /package/lib/{GaoDeMap → components/GaoDeMap}/index.d.ts +0 -0
- /package/lib/{GenerateForm → components/GenerateForm}/index.d.ts +0 -0
- /package/lib/{GenerateTable → components/GenerateTable}/EditableCell/index.d.ts +0 -0
- /package/lib/{GenerateTable → components/GenerateTable}/ResizableTitle/index.d.ts +0 -0
- /package/lib/{GenerateTable → components/GenerateTable}/index.d.ts +0 -0
- /package/lib/{IconSelectionModal → components/IconSelectionModal}/index.d.ts +0 -0
- /package/lib/{LayoutFormModal → components/LayoutFormModal}/index.d.ts +0 -0
- /package/lib/{LayoutTableModal → components/LayoutTableModal}/index.d.ts +0 -0
- /package/lib/{QuicklyProcessForms → components/QuicklyProcessForms}/index.d.ts +0 -0
- /package/lib/{TreeNode → components/TreeNode}/index.d.ts +0 -0
- /package/lib/{Upload → components/Upload}/index.d.ts +0 -0
- /package/lib/{unrelated → components/unrelated}/DndWrap/index.d.ts +0 -0
- /package/lib/{unrelated → components/unrelated}/typings/index.d.ts +0 -0
- /package/lib/{unrelated → components/unrelated}/utils/index.d.ts +0 -0
- /package/lib/{unrelated/hooks → hooks}/useSetState/index.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import useDeepCompareEffect from './useDeepCompareEffect';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
useSetState: <T extends object>(initialState?: T) => [T, (patch: Partial<T> | ((prevState: T) => Partial<T>)) => void];
|
|
5
|
+
useDeepCompareEffect: typeof useDeepCompareEffect;
|
|
6
|
+
useUpdateEffect: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
|
|
7
|
+
useMemoizedFn: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
|
|
8
|
+
useMount: (fn: () => void) => void;
|
|
9
|
+
useUnmount: (fn: () => void) => void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type UseEffectParams = Parameters<typeof React.useEffect>;
|
|
3
|
+
declare type EffectCallback = UseEffectParams[0];
|
|
4
|
+
declare type DependencyList = UseEffectParams[1];
|
|
5
|
+
declare type UseEffectReturn = ReturnType<typeof React.useEffect>;
|
|
6
|
+
declare function useDeepCompareEffect(callback: EffectCallback, dependencies: DependencyList): UseEffectReturn;
|
|
7
|
+
export default useDeepCompareEffect;
|