diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..a4d0534 --- /dev/null +++ b/index.d.ts @@ -0,0 +1 @@ +export default function accept(file: { name?: string, type?: string }, acceptedFiles: string | string[]): boolean; diff --git a/package.json b/package.json index 162317e..d6205b9 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "description": "JavaScript implementation of the \"accept\" attribute for HTML5 ", "version": "0.0.0-development", "main": "dist/index.js", + "types": "index.d.ts", "scripts": { "build": "webpack -p", "prepublish": "npm test && npm run build",