UNPKG

471 BTypeScriptView Raw
1import { useRef, MutableRefObject } from 'react';
2import { Props, ReactResizeDetectorDimensions } from './ResizeDetector';
3interface FunctionProps extends Props {
4 targetRef?: ReturnType<typeof useRef>;
5}
6declare function useResizeDetector<T = any>(props?: FunctionProps): UseResizeDetectorReturn<T>;
7export default useResizeDetector;
8export interface UseResizeDetectorReturn<T> extends ReactResizeDetectorDimensions {
9 ref: MutableRefObject<T | null>;
10}