UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

12 lines 555 B
//#region src/hooks/use-window-event/index.d.ts type Handler<E extends string> = E extends keyof WindowEventMap ? (ev: WindowEventMap[E]) => void : (ev: CustomEvent) => void; type Options = AddEventListenerOptions | boolean; /** * `useWindowEvent` is a custom hook that assigns an event listener to `window`. * * @see https://yamada-ui.com/docs/hooks/use-window-event */ declare const useWindowEvent: <E extends string>(ev: E, handler: Handler<E>, options?: Options) => void; //#endregion export { useWindowEvent }; //# sourceMappingURL=index.d.ts.map