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 24, 2019
1 parent 2b899d0 commit 9a5af7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.d.ts
@@ -0,0 +1,4 @@
export default class RemoteInputElement extends HTMLElement {
readonly input?: HTMLInputElement;
src: string;
}
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -4,10 +4,12 @@
"description": "An input element that sends its value to a server endpoint and renders the response body.",
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"types": "index.d.ts",
"license": "MIT",
"repository": "github/remote-input-element",
"files": [
"dist"
"dist",
"index.d.ts"
],
"scripts": {
"clean": "rm -rf dist",
Expand Down

0 comments on commit 9a5af7e

Please sign in to comment.