UNPKG

509 BTypeScriptView Raw
1/// <reference types="dragula" />
2import { DragulaOptions as OriginalOptions } from 'dragula';
3export interface DragulaOptions<T = any> extends OriginalOptions {
4 copySortSource?: boolean | ((el: Element, source: Element) => boolean);
5 /** You must provide this if you are using `copy` with `[dragulaModel]`. It
6 * is responsible for cloning a model item. Your implementation should
7 * ensure `x !== copyItem(x)` -- so you must create a *new* object.
8 **/
9 copyItem?: (item: T) => T;
10}