Skip to content

Commit 07ceeec

Browse files
authored
Merge pull request #20 from github/add-typescript-definition-file
Add typescript definition file
2 parents 7dc0a58 + 4e6a779 commit 07ceeec

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default class AutoCheckElement extends HTMLElement {
2+
readonly input: HTMLInputElement | null;
3+
src: string;
4+
csrf: string;
5+
required: boolean;
6+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
"description": "An input element that validates its value with a server endpoint.",
55
"repository": "github/auto-check-element",
66
"files": [
7-
"dist"
7+
"dist",
8+
"index.d.ts"
89
],
910
"main": "dist/index.umd.js",
1011
"module": "dist/index.esm.js",
12+
"types": "index.d.ts",
1113
"scripts": {
1214
"clean": "rm -rf dist/",
1315
"lint": "github-lint",

0 commit comments

Comments
 (0)