Skip to content

Commit

Permalink
add typescript definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jul 2, 2019
1 parent 06128e7 commit 0b79c40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default class ImageCropElement extends HTMLElement {
src?: string
loaded?: boolean
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"description": "Select area for cropping an image. This does not actually crop.",
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"types": "index.d.ts",
"files": [
"dist",
"index.css"
"index.css",
"index.d.ts"
],
"scripts": {
"clean": "rm -rf dist",
Expand Down

0 comments on commit 0b79c40

Please sign in to comment.