UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

2 lines (1 loc) 250 B
export declare function useWindowEvent<K extends string>(type: K, listener: K extends keyof WindowEventMap ? (this: Window, ev: WindowEventMap[K]) => void : (this: Window, ev: CustomEvent) => void, options?: boolean | AddEventListenerOptions): void;