UNPKG

rc-hooks

Version:
5 lines (4 loc) 246 B
import { RefObject } from 'react'; export type RefType<T = HTMLElement> = RefObject<T | null> | null | (() => T | null) | T | RefObject<T | undefined>; declare function getRef(ref: RefType): HTMLElement | null | undefined; export default getRef;