Skip to content

Commit

Permalink
Merge pull request #9 from github/add-typescript-definition-file
Browse files Browse the repository at this point in the history
Add typescript definition file
  • Loading branch information
koddsson authored Sep 11, 2019
2 parents aee0e57 + da52c77 commit fa5748e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
interface Subscription {
unsubscribe: () => void
}

export default function checkAll(container: Element): Subscription;
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"version": "0.2.4",
"main": "dist/check-all.umd.js",
"module": "dist/check-all.esm.js",
"types": "index.d.ts",
"license": "MIT",
"repository": "github/check-all",
"files": [
"dist"
"dist",
"index.d.ts"
],
"scripts": {
"clean": "rm -rf dist",
Expand Down

0 comments on commit fa5748e

Please sign in to comment.