Skip to content

Commit

Permalink
feat: TypeScript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed May 20, 2016
1 parent 9da960a commit 2d4dc07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"url": "https://github.com/telerik/kendo-draggable.git"
},
"main": "dist/npm/js/Draggable.js",
"typings": "typings/Draggable.d.ts",
"scripts": {
"build-package": "gulp build-npm-package",
"test": "gulp e2e",
Expand Down
11 changes: 11 additions & 0 deletions typings/Draggable.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
interface DraggableOptions {
press?: Function,
drag?: Function,
release?: Function
}

export default class Draggable {
constructor(options?: DraggableOptions)
bindTo(element: Element)
destroy()
}

0 comments on commit 2d4dc07

Please sign in to comment.