Skip to content

Commit da52c77

Browse files
committed
add typescript definition file
1 parent 97150de commit da52c77

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
interface Subscription {
2+
unsubscribe: () => void
3+
}
4+
5+
export default function checkAll(container: Element): Subscription;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
"version": "0.2.4",
55
"main": "dist/check-all.umd.js",
66
"module": "dist/check-all.esm.js",
7+
"types": "index.d.ts",
78
"license": "MIT",
89
"repository": "github/check-all",
910
"files": [
10-
"dist"
11+
"dist",
12+
"index.d.ts"
1113
],
1214
"scripts": {
1315
"clean": "rm -rf dist",

0 commit comments

Comments
 (0)