Skip to content

Commit 5bfaaef

Browse files
Merge pull request #805 from Keimeno/feature-typescript-declarations
added typings declaration file
2 parents 2df59ae + 1309c31 commit 5bfaaef

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "draggable component for vue",
55
"license": "MIT",
66
"main": "dist/vuedraggable.umd.min.js",
7+
"types": "src/vuedraggable.d.ts",
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/SortableJS/Vue.Draggable.git"

src/vuedraggable.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
declare module 'vuedraggable' {
2+
import Vue from 'vue';
3+
class Draggable extends Vue {
4+
static install(vue: typeof Vue): void;
5+
6+
noTransitionOnDrag: boolean;
7+
8+
element: string;
9+
10+
tag: string;
11+
12+
options: object;
13+
14+
componentData: object;
15+
16+
clone: any;
17+
18+
move: any;
19+
20+
list: any[];
21+
22+
value: any[];
23+
}
24+
25+
export = Draggable;
26+
}

0 commit comments

Comments
 (0)