Skip to content

Commit

Permalink
fix(ts): error declare of route.resource (#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntSworD authored and atian25 committed Jan 18, 2018
1 parent 32d7c81 commit 55d08bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export interface Router extends KoaRouter {
/**
* restful router api
*/
resources(name: string, prefix: string, middleware: any): Router;
resources(name: string, prefix: string, ...middleware: any[]): Router;

/**
* @param {String} name - Router name
Expand Down Expand Up @@ -801,4 +801,4 @@ export interface IService { }// tslint:disable-line

export interface IController { } // tslint:disable-line

export as namespace Egg;
export as namespace Egg;

0 comments on commit 55d08bd

Please sign in to comment.