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 |
|
7 |
|
8 |
|
9 |
|
10 | export declare function useDeepCompareMemoize<T>(value: T): T;
|
11 | declare function useDeepCompareEffect(callback: EffectCallback, dependencies: DependencyList): UseEffectReturn;
|
12 | export declare function useDeepCompareEffectNoCheck(callback: EffectCallback, dependencies: DependencyList): UseEffectReturn;
|
13 | export default useDeepCompareEffect;
|