diff --git a/index.d.ts b/index.d.ts index 7bbdf18594..17cb4863b1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -525,6 +525,8 @@ declare module 'egg' { */ beforeStart(scrope: () => void): void; + runSchedule(schedulePath: string): Promise; + /** * Close all, it wil close * - callbacks registered by beforeClose @@ -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