DragulaOptions.copy can be a function

This commit is contained in:
Carsten Blüm
2017-01-09 08:16:02 +01:00
parent e93460bfaa
commit 4d1c1d396e
+1 -1
View File
@@ -16,7 +16,7 @@ declare namespace dragula {
accepts?: (el?: Element, target?: Element, source?: Element, sibling?: Element) => boolean;
invalid?: (el?: Element, target?: Element) => boolean;
direction?: string;
copy?: boolean;
copy?: ((el: Element, source: Element) => boolean) | boolean;
revertOnSpill?: boolean;
removeOnSpill?: boolean;
delay?: boolean | number;