Skip to content

Commit

Permalink
Merge pull request #20 from QingWei-Li/feat-typings
Browse files Browse the repository at this point in the history
feat: add ts definition
  • Loading branch information
YanagiEiichi authored Jun 26, 2017
2 parents 237f701 + 7d98562 commit b47a89d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module "restc" {
export function koa2(): () => any;
export function koa(): () => any;
export function express(): () => any;
}
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"main": "index.js",
"repository": "https://github.com/ElemeFE/restc.git",
"license": "MIT",
"typings": "index.d.ts",
"files": [
"lib",
"faas",
"index.js",
"index.d.ts"
],
"faas": {
"domain": "restc",
"public": "faas",
Expand Down

0 comments on commit b47a89d

Please sign in to comment.