diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..183e0b7 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,4 @@ +export default class ImageCropElement extends HTMLElement { + src?: string + loaded?: boolean +} diff --git a/package.json b/package.json index 0ffc514..5ed532f 100644 --- a/package.json +++ b/package.json @@ -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",