Skip to content

Commit

Permalink
Merge pull request #20 from github/add-typescript-definition-file
Browse files Browse the repository at this point in the history
Add typescript definition file
  • Loading branch information
koddsson authored Aug 16, 2019
2 parents 1f25dec + c676605 commit 173b0f7
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 || null
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 173b0f7

Please sign in to comment.