Skip to content

Commit

Permalink
chore(typings): change export interface to class definition
Browse files Browse the repository at this point in the history
issue: eggjs#2292
  • Loading branch information
waitingsong committed Mar 29, 2018
1 parent d9c4ec2 commit 9081d66
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 @@ -377,7 +377,7 @@ declare module 'egg' {
url(name: string, params: any): any;
}

interface EggApplication extends KoaApplication { // tslint:disable-line
class EggApplication extends KoaApplication { // tslint:disable-line
/**
* The current directory of application
*/
Expand Down Expand Up @@ -498,7 +498,7 @@ declare module 'egg' {

type RouterPath = string | RegExp;

export interface Application extends EggApplication {
class Application extends EggApplication {
/**
* global locals for view
* @see Context#locals
Expand Down

0 comments on commit 9081d66

Please sign in to comment.