message: chore: update types for event listener
diff: import { useEffect } from "react"
  import { useCallbackRef } from "@chakra-ui/react-use-callback-ref"
  +type Target = EventTarget | null | (() => EventTarget | null)
  +type Options = boolean | AddEventListenerOptions
  +
  +export function useEventListener<K extends keyof DocumentEventMap>(
  + target: Target,
  + event: K,
  + handler?: (event: DocumentEventMap[K]) => void,
  + options?: Options,
  +): VoidFunction
  +export function useEventListener<K extends keyof WindowEventMap>(
  + target: Target,
  + event: K,
  + handler?: (event: WindowEventMap[K]) => void,
  + options?: Options,
  +): VoidFunction
  +export function useEventListener<K extends keyof GlobalEventHandlersEventMap>(
  + target: Target,
  + event: K,
  + handler?: (event: GlobalEventHandlersEventMap[K]) => void,
  + options?: Options,
  +): VoidFunction
  export function useEventListener(
  - target: EventTarget | null | (() => EventTarget | null),
  + target: Target,
  event: string,
  - handler: (event: Event) => void,
  - options?: boolean | AddEventListenerOptions,
  + handler: ((event: Event) => void) | undefined,
  + options?: Options,
  ) {
  const listener = useCallbackRef(handler)
  