Skip to content

Commit

Permalink
fix: declare definition error in schedule (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 authored May 27, 2021
1 parent f64b3aa commit ec8af5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/web/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ declare module 'egg' {
appDir: string;
}

interface Application extends IMidwayBaseApplication, IMidwayWebBaseApplication {}
// 这里再次覆盖和 egg 不同的定义,不然 egg 插件里可能会报错
interface Application extends IMidwayBaseApplication, IMidwayWebBaseApplication {
createAnonymousContext(...args: any[]): EggContext;
getCoreLogger(): EggLogger & ILogger;
getLogger(name?: string): EggLogger & ILogger;
createLogger(name: string, options: LoggerOptions): EggLogger & ILogger;
}

interface Context <ResponseBodyT = any> extends IMidwayBaseContext {
getLogger(name?: string): EggLogger & ILogger;
Expand Down
Empty file modified scripts/rollback/rollback-2.10.18.sh
100644 → 100755
Empty file.

0 comments on commit ec8af5a

Please sign in to comment.