Skip to content

Commit

Permalink
add typescript definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jul 29, 2019
1 parent 2dc941b commit 2bf5499
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default class AutoCheckElement extends HTMLElement {
readonly input?: HTMLInputElement;
src: string;
csrf: string;
required: boolean;
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "An input element that validates its value with a server endpoint.",
"repository": "github/auto-check-element",
"files": [
"dist"
"dist",
"index.d.ts"
],
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"types": "index.d.ts",
"scripts": {
"clean": "rm -rf dist/",
"lint": "github-lint",
Expand Down

0 comments on commit 2bf5499

Please sign in to comment.