rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
5 lines • 571 B
TypeScript
import type { ListenerOptions } from "@/types/utils";
declare function useGlobalObjectEventListener(globalObject: Document, eventName: keyof DocumentEventMap, callback: EventListener, listenerOptions: ListenerOptions, when: boolean, isLayoutEffect: boolean): void;
declare function useGlobalObjectEventListener(globalObject: Window, eventName: keyof WindowEventMap, callback: EventListener, listenerOptions: ListenerOptions, when: boolean, isLayoutEffect: boolean): void;
export { useGlobalObjectEventListener };
//# sourceMappingURL=useGlobalObjectEventListener.d.ts.map