Skip to content

Commit

Permalink
added typings, fixed browser key in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzyma committed Feb 19, 2019
1 parent 33720a5 commit 27df029
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@svgdotjs/svg.draggable.js",
"version": "3.0.1",
"version": "3.0.2",
"description": "An extension for svg.js which allows to drag elements with your mouse",
"main": "dist/svg.draggable.js",
"unpkg": "dist/svg.draggable.min.js",
"jsdelivr": "dist/svg.draggable.min.js",
"browser": "dist/svg.draggable.min.js",
"browser": "src/svg.draggable.js",
"module": "src/svg.draggable.js",
"keywords": [
"svg.js",
Expand All @@ -14,6 +14,7 @@
],
"bugs": "https://github.com/svgdotjs/svg.draggable.js/issues",
"license": "MIT",
"typings": "./svg.draggable.js.d.ts",
"author": {
"name": "Wout Fierens"
},
Expand Down
7 changes: 7 additions & 0 deletions svg.draggable.js.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Element } from '@svgdotjs/svg.js'

declare module "@svgdotjs/svg.js" {
interface Element {
draggable(enable?:boolean): this
}
}

0 comments on commit 27df029

Please sign in to comment.