ahooks-v2
Version:
react hooks library
6 lines (5 loc) • 391 B
TypeScript
import { MutableRefObject } from 'react';
export declare type BasicTarget<T = HTMLElement> = (() => T | null) | T | null | MutableRefObject<T | null | undefined>;
declare type TargetElement = HTMLElement | Element | Document | Window;
export declare function getTargetElement(target?: BasicTarget<TargetElement>, defaultElement?: TargetElement): TargetElement | undefined | null;
export {};