@ant-design-vue/use
Version:
Vue 3 Composition Api Library.
8 lines (7 loc) • 317 B
TypeScript
import { Ref } from 'vue';
declare function useEventListener(target: Ref<HTMLElement | Document | Window> | HTMLElement | Document | Window, option: {
type: string;
listener: EventListenerOrEventListenerObject;
options?: boolean | AddEventListenerOptions;
}): () => void;
export default useEventListener;