Skip to content

Commit 3c6de9b

Browse files
feat: add TypeScript type definitions (#40)
1 parent 2feced7 commit 3c6de9b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default function accept(file: { name?: string, type?: string }, acceptedFiles: string | string[]): boolean;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">",
44
"version": "0.0.0-development",
55
"main": "dist/index.js",
6+
"types": "index.d.ts",
67
"scripts": {
78
"build": "webpack -p",
89
"prepublish": "npm test && npm run build",

0 commit comments

Comments
 (0)