mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 22:39:26 +01:00
5 lines
574 B
TypeScript
5 lines
574 B
TypeScript
/// <reference types="react" />
|
|
export declare type DOMContainer<T extends HTMLElement = HTMLElement> = T | React.RefObject<T> | null | (() => T | React.RefObject<T> | null);
|
|
export declare const resolveContainerRef: <T extends HTMLElement>(ref: T | import("react").RefObject<T> | (() => T | import("react").RefObject<T> | null) | null | undefined) => HTMLBodyElement | T | null;
|
|
export default function useWaitForDOMRef<T extends HTMLElement = HTMLElement>(ref: DOMContainer<T> | undefined, onResolved?: (element: T | HTMLBodyElement) => void): HTMLBodyElement | T | null;
|