Skip to content

Commit 4763f4c

Browse files
committed
fix: add typescript types
1 parent db1cc08 commit 4763f4c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare function isLinkWorking(link: string): Promise<boolean>
2+
export = isLinkWorking

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"test-cov": "nyc --dir test/coverage _mocha -- --timeout 10000 --bail && echo Coverage lies in test/coverage/lcov-report/index.html",
1010
"test-travis": "nyc _mocha --report lcovonly -- --timeout 10000 --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
1111
},
12+
"types": "./index.d.ts",
1213
"bugs": {
1314
"url": "https://github.com/IndigoUnited/node-is-link-working/issues/"
1415
},

0 commit comments

Comments
 (0)