UNPKG

@vue-flow/core

Version:

[![Vue flow](vue-flow.gif)](https://vueflow.dev/) ![top-language](https://img.shields.io/github/languages/top/bcakmakoglu/vue-flow) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/bcakmakoglu/vue-flow) ![GitHub last commit](

13 lines (11 loc) 473 B
import type { EventHook } from '@vueuse/core' /** * Source code taken from https://github.com/vueuse/vueuse/blob/main/packages/shared/createEventHook/index.ts * * Modified to be able to check if there are any event listeners */ export interface EventHookExtended<T> extends EventHook<T> { hasListeners: () => boolean fns: Set<(param: T) => void> } export declare function createExtendedEventHook<T = any>(defaultHandler?: (param: T) => void): EventHookExtended<T>