Skip to content

Commit 155481c

Browse files
authored
Merge pull request #8 from github/add-typescript-definition-file
Add typescript definition file
2 parents 4270f8f + be8b316 commit 155481c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default class TaskListsElement extends HTMLElement {
2+
disabled: boolean
3+
sortable: boolean
4+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"repository": "github/task-lists-element",
66
"main": "dist/index.umd.js",
77
"module": "dist/index.esm.js",
8+
"types": "index.d.ts",
89
"scripts": {
910
"clean": "rm -rf dist",
1011
"lint": "github-lint",
@@ -20,7 +21,8 @@
2021
],
2122
"license": "MIT",
2223
"files": [
23-
"dist"
24+
"dist",
25+
"index.d.ts"
2426
],
2527
"devDependencies": {
2628
"@babel/core": "^7.4.5",

0 commit comments

Comments
 (0)