@types/dragula
Advanced tools
Comparing version 3.7.0 to 3.7.1
@@ -15,15 +15,15 @@ // Type definitions for dragula 3.7 | ||
interface DragulaOptions { | ||
containers?: Element[]; | ||
isContainer?: (el?: Element) => boolean; | ||
moves?: (el?: Element, container?: Element, handle?: Element, sibling?: Element) => boolean; | ||
accepts?: (el?: Element, target?: Element, source?: Element, sibling?: Element) => boolean; | ||
invalid?: (el?: Element, target?: Element) => boolean; | ||
direction?: string; | ||
copy?: ((el: Element, source: Element) => boolean) | boolean; | ||
copySortSource?: boolean; | ||
revertOnSpill?: boolean; | ||
removeOnSpill?: boolean; | ||
delay?: boolean | number; | ||
mirrorContainer?: Element; | ||
ignoreInputTextSelection?: boolean; | ||
containers?: Element[] | undefined; | ||
isContainer?: ((el?: Element) => boolean) | undefined; | ||
moves?: ((el?: Element, container?: Element, handle?: Element, sibling?: Element) => boolean) | undefined; | ||
accepts?: ((el?: Element, target?: Element, source?: Element, sibling?: Element) => boolean) | undefined; | ||
invalid?: ((el?: Element, target?: Element) => boolean) | undefined; | ||
direction?: string | undefined; | ||
copy?: ((el: Element, source: Element) => boolean) | boolean | undefined; | ||
copySortSource?: boolean | undefined; | ||
revertOnSpill?: boolean | undefined; | ||
removeOnSpill?: boolean | undefined; | ||
delay?: boolean | number | undefined; | ||
mirrorContainer?: Element | undefined; | ||
ignoreInputTextSelection?: boolean | undefined; | ||
} | ||
@@ -30,0 +30,0 @@ |
{ | ||
"name": "@types/dragula", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"description": "TypeScript definitions for dragula", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dragula", | ||
"license": "MIT", | ||
@@ -32,4 +33,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "cd16272e387b5144f31f41e9aa14b2950ff5fbe2d9d787203e77c53142ff2a62", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "4badaa71a96d5e99e2ee598b47c9ecf56aacefec890eda0e7860936040f436eb", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,63 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dragula. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dragula/index.d.ts) | ||
````ts | ||
// Type definitions for dragula 3.7 | ||
// Project: http://bevacqua.github.io/dragula/ | ||
// Definitions by: Paul Welter <https://github.com/pwelter34> | ||
// Yang He <https://github.com/abruzzihraig> | ||
// Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
declare const dragula: dragula.Dragula; | ||
export = dragula; | ||
export as namespace dragula; | ||
declare namespace dragula { | ||
interface DragulaOptions { | ||
containers?: Element[] | undefined; | ||
isContainer?: ((el?: Element) => boolean) | undefined; | ||
moves?: ((el?: Element, container?: Element, handle?: Element, sibling?: Element) => boolean) | undefined; | ||
accepts?: ((el?: Element, target?: Element, source?: Element, sibling?: Element) => boolean) | undefined; | ||
invalid?: ((el?: Element, target?: Element) => boolean) | undefined; | ||
direction?: string | undefined; | ||
copy?: ((el: Element, source: Element) => boolean) | boolean | undefined; | ||
copySortSource?: boolean | undefined; | ||
revertOnSpill?: boolean | undefined; | ||
removeOnSpill?: boolean | undefined; | ||
delay?: boolean | number | undefined; | ||
mirrorContainer?: Element | undefined; | ||
ignoreInputTextSelection?: boolean | undefined; | ||
} | ||
interface Drake { | ||
containers: Element[]; | ||
dragging: boolean; | ||
start(item: Element): void; | ||
end(): void; | ||
cancel(revert?: boolean): void; | ||
canMove(item: Element): boolean; | ||
remove(): void; | ||
on(event: 'drag', listener: (el: Element, source: Element) => void): Drake; | ||
on(event: 'dragend', listener: (el: Element) => void): Drake; | ||
on(event: 'drop', listener: (el: Element, target: Element, source: Element, sibling: Element) => void): Drake; | ||
on( | ||
event: 'cancel' | 'remove' | 'shadow' | 'over' | 'out', | ||
listener: (el: Element, container: Element, source: Element) => void, | ||
): Drake; | ||
on(event: 'cloned', listener: (clone: Element, original: Element, type: 'mirror' | 'copy') => void): Drake; | ||
destroy(): void; | ||
} | ||
interface Dragula { | ||
(containers: Element, options: DragulaOptions): Drake; | ||
(containers: Element[], options?: DragulaOptions): Drake; | ||
(options?: DragulaOptions): Drake; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 05 Feb 2020 17:35:01 GMT | ||
* Last updated: Tue, 06 Jul 2021 20:32:48 GMT | ||
* Dependencies: none | ||
@@ -17,2 +75,2 @@ * Global values: `dragula` | ||
# Credits | ||
These definitions were written by Paul Welter (https://github.com/pwelter34), Yang He (https://github.com/abruzzihraig), and Piotr Błażejewicz (https://github.com/peterblazejewicz). | ||
These definitions were written by [Paul Welter](https://github.com/pwelter34), [Yang He](https://github.com/abruzzihraig), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7720
0
75