UNPKG

282 BTypeScriptView Raw
1export type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
2export declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
3export declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;