vue3-dnd
Version:
Drag and Drop for Vue Composition API
10 lines (9 loc) • 659 B
TypeScript
import type { ConnectDropTarget } from '../../types';
import type { DropTargetHookSpec, FactoryOrInstance } from '../types.js';
import { Ref } from 'vue-demi';
import { DropTargetOptions } from '../../types';
/**
* useDropTarget Hook
* @param specArg The drop target specification (object or function, function preferred)
*/
export declare function useDrop<DragObject = unknown, DropResult = unknown, CollectedProps = unknown, ConnectDropTargetOptions extends DropTargetOptions = DropTargetOptions>(specArg: FactoryOrInstance<DropTargetHookSpec<DragObject, DropResult, CollectedProps>>): [Ref<CollectedProps>, ConnectDropTarget<ConnectDropTargetOptions>];