Skip to content

Commit

Permalink
chore(typings): export class Agent
Browse files Browse the repository at this point in the history
relevant issue: eggjs#2292
  • Loading branch information
waitingsong committed Mar 29, 2018
1 parent 9081d66 commit f863f52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,4 +849,11 @@ declare module 'egg' {
*/
urlFor(name: string, params?: { [key: string]: any }): string;
}

/**
* Singleton instance in Agent Worker, extend {@link EggApplication}
*/
class Agent extends EggApplication {
_wrapMessenger(): void
}
}

0 comments on commit f863f52

Please sign in to comment.