Skip to content

Commit 89187a6

Browse files
committed
add typescript definition file
1 parent 4270f8f commit 89187a6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
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": "task-lists-element.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+
"task-lists-element.d.ts"
2426
],
2527
"devDependencies": {
2628
"@babel/core": "^7.4.5",

task-lists-element.d.ts

Lines changed: 4 additions & 0 deletions
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+
}

0 commit comments

Comments
 (0)