Skip to content

Commit

Permalink
fix: add key any to Context (eggjs#2650)
Browse files Browse the repository at this point in the history
  • Loading branch information
whxaxes authored and XadillaX committed Jun 7, 2018
1 parent bb3c8dd commit 0fe59f7
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 @@ -550,6 +550,8 @@ interface FileStream extends Readable { // tslint:disable-line
}

export interface Context extends KoaApplication.Context {
[key: string]: any;

app: Application;

service: IService;
Expand Down Expand Up @@ -798,7 +800,5 @@ export class Service extends BaseContextClass { }
* Now I can get ctx.service.foo at controller and other service file.
*/
export interface IService { }// tslint:disable-line

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

export as namespace Egg;

0 comments on commit 0fe59f7

Please sign in to comment.