Skip to content

Commit 9a5af7e

Browse files
committed
add typescript definition file
1 parent 2b899d0 commit 9a5af7e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default class RemoteInputElement extends HTMLElement {
2+
readonly input?: HTMLInputElement;
3+
src: string;
4+
}

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 sends its value to a server endpoint and renders the response body.",
55
"main": "dist/index.umd.js",
66
"module": "dist/index.esm.js",
7+
"types": "index.d.ts",
78
"license": "MIT",
89
"repository": "github/remote-input-element",
910
"files": [
10-
"dist"
11+
"dist",
12+
"index.d.ts"
1113
],
1214
"scripts": {
1315
"clean": "rm -rf dist",

0 commit comments

Comments
 (0)