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