Skip to content

Commit fa5748e

Browse files
authored
Merge pull request #9 from github/add-typescript-definition-file
Add typescript definition file
2 parents aee0e57 + da52c77 commit fa5748e

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)