Skip to content

Commit

Permalink
feat(d.ts): add runSchedule & Subscription define (#2504)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngot authored and atian25 committed May 5, 2018
1 parent 5e6ea50 commit c013ef3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ declare module 'egg' {
*/
beforeStart(scrope: () => void): void;

runSchedule(schedulePath: string): Promise<any>;

/**
* Close all, it wil close
* - callbacks registered by beforeClose
Expand Down Expand Up @@ -861,6 +863,8 @@ declare module 'egg' {

export class Service extends BaseContextClass { }

export class Subscription extends BaseContextClass { }

/**
* The empty interface `IService` is a placeholder, for egg
* to auto injection service to ctx.service
Expand Down

0 comments on commit c013ef3

Please sign in to comment.