Skip to content

Commit

Permalink
feat: add TypeScript type definitions (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
777PolarFox777 authored Mar 15, 2020
1 parent 2feced7 commit 3c6de9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function accept(file: { name?: string, type?: string }, acceptedFiles: string | string[]): boolean;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">",
"version": "0.0.0-development",
"main": "dist/index.js",
"types": "index.d.ts",
"scripts": {
"build": "webpack -p",
"prepublish": "npm test && npm run build",
Expand Down

0 comments on commit 3c6de9b

Please sign in to comment.