UNPKG

vue3-dnd

Version:

Drag and Drop for Vue Composition API

10 lines (9 loc) 386 B
import { MaybeRef } from '../types/utils'; import { Ref } from 'vue-demi'; /** * * @param monitor The monitor to collect state from * @param collect The collecting function * @param onUpdate A method to invoke when updates occur */ export declare function useCollector<T, S>(monitor: MaybeRef<T>, collect: MaybeRef<(monitor: T) => S>, onUpdate?: () => void): [Ref<S>, () => void];