@types/dragula
Advanced tools
Comparing version 2.1.34 to 3.7.0
@@ -1,8 +0,9 @@ | ||
// Type definitions for dragula v2.1.2 | ||
// 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 var dragula: dragula.Dragula; | ||
declare const dragula: dragula.Dragula; | ||
@@ -21,2 +22,3 @@ export = dragula; | ||
copy?: ((el: Element, source: Element) => boolean) | boolean; | ||
copySortSource?: boolean; | ||
revertOnSpill?: boolean; | ||
@@ -32,8 +34,15 @@ removeOnSpill?: boolean; | ||
dragging: boolean; | ||
start(item:Element): void; | ||
start(item: Element): void; | ||
end(): void; | ||
cancel(revert:boolean): void; | ||
cancel(): void; | ||
cancel(revert?: boolean): void; | ||
canMove(item: Element): boolean; | ||
remove(): void; | ||
on(events: string, callback: Function): Drake; | ||
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; | ||
@@ -43,8 +52,6 @@ } | ||
interface Dragula { | ||
(containers: Element[], options: DragulaOptions): Drake; | ||
(containers: Element, options: DragulaOptions): Drake; | ||
(containers: Element[]): Drake; | ||
(options: DragulaOptions): Drake; | ||
(): Drake; | ||
(containers: Element[], options?: DragulaOptions): Drake; | ||
(options?: DragulaOptions): Drake; | ||
} | ||
} |
{ | ||
"name": "@types/dragula", | ||
"version": "2.1.34", | ||
"version": "3.7.0", | ||
"description": "TypeScript definitions for dragula", | ||
@@ -16,14 +16,20 @@ "license": "MIT", | ||
"githubUsername": "abruzzihraig" | ||
}, | ||
{ | ||
"name": "Piotr Błażejewicz", | ||
"url": "https://github.com/peterblazejewicz", | ||
"githubUsername": "peterblazejewicz" | ||
} | ||
], | ||
"main": "", | ||
"types": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/dragula" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "f2e5240a77df4f85381516cf55f814c57a97d07f8f155fa225c78e712fbab3d9", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "cd16272e387b5144f31f41e9aa14b2950ff5fbe2d9d787203e77c53142ff2a62", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dragula | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dragula. | ||
Additional Details | ||
* Last updated: Sat, 27 Oct 2018 06:22:24 GMT | ||
### Additional Details | ||
* Last updated: Wed, 05 Feb 2020 17:35:01 GMT | ||
* Dependencies: none | ||
* Global values: dragula | ||
* Global values: `dragula` | ||
# Credits | ||
These definitions were written by Paul Welter <https://github.com/pwelter34>, Yang He <https://github.com/abruzzihraig>. | ||
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). |
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
5004
49