Skip to content

Commit

Permalink
add dts for better auto complete
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Nov 21, 2017
1 parent 1879318 commit 219d000
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare module 'express-promise-router' {
import {Router, RouterOptions} from 'express'

function Router(options?: RouterOptions): Router

export = Router
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"methods": "^1.0.0"
},
"peerDependencies": {
"@types/express": "^4.0.0",
"express": "4.x"
},
"devDependencies": {
Expand All @@ -51,6 +52,7 @@
"shared-git-hooks": "^1.2.1",
"sinon": "^4.0.0"
},
"types": "index.d.ts",
"scripts": {
"format": "prettier --write --trailing-comma es5 --print-width 120 --single-quote --tab-width 4 'lib/*.js' 'test/*.js'",
"lint": "eslint {lib,test}/**/*.js",
Expand Down

0 comments on commit 219d000

Please sign in to comment.