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 5a884b1 commit 0afa1f7
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,17 +1,18 @@
{
"name": "@svgdotjs/svg.topath.js",
"version": "2.0.1",
"version": "2.0.2",
"description": "An extension for svg.js to convert shapes to paths",
"main": "svg.topath.node.js",
"unpkg": "dist/svg.topath.min.js",
"jsdelivr": "dist/svg.topath.min.js",
"browser": "dist/svg.topath.min.js",
"browser": "src/svg.topath.js",
"module": "src/svg.topath.js",
"keywords": [
"svg.js"
],
"bugs": "https://github.com/svgdotjs/svg.topath.js/issues",
"license": "MIT",
"typings": "./svg.topath.js.d.ts",
"author": {
"name": "Wout Fierens"
},
Expand Down
7 changes: 7 additions & 0 deletions svg.topath.js.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Shape, Path } from '@svgdotjs/svg.js'

declare module "@svgdotjs/svg.js" {
interface Shape {
toPath(replace?: boolean): Path
}
}

0 comments on commit 0afa1f7

Please sign in to comment.