Skip to content

Commit 0b79c40

Browse files
committed
add typescript definition file
1 parent 06128e7 commit 0b79c40

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default class ImageCropElement extends HTMLElement {
2+
src?: string
3+
loaded?: boolean
4+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"description": "Select area for cropping an image. This does not actually crop.",
55
"main": "dist/index.umd.js",
66
"module": "dist/index.esm.js",
7+
"types": "index.d.ts",
78
"files": [
89
"dist",
9-
"index.css"
10+
"index.css",
11+
"index.d.ts"
1012
],
1113
"scripts": {
1214
"clean": "rm -rf dist",

0 commit comments

Comments
 (0)