rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
7 lines • 482 B
TypeScript
import type { MutableRefObject, Ref } from "react";
export declare type HTMLElementOrNull = HTMLElement | null;
export declare type RefElementOrNull<T> = T | null;
export declare type CallbackRef<T extends HTMLElement | null = HTMLElementOrNull> = (node: T) => void;
export declare type AnyRef<T extends HTMLElement | null = HTMLElementOrNull> = CallbackRef<T> | MutableRefObject<T>;
export declare type PossibleRef<T> = Ref<T> | undefined;
//# sourceMappingURL=utils.d.ts.map