Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Feb 4, 2025
1 parent e2f05c9 commit 02aaf1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/extend/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,14 @@ export default class Context extends EggCoreContext {
declare module '@eggjs/core' {
// add Context overrides types
interface Context {
proxy: any;
performanceStarttime: number;
starttime: number;
runInBackground(scope: (ctx: Context) => Promise<void>, taskName?: string): void;
_runInBackground(scope: (ctx: Context) => Promise<void>, taskName: string): void;
get acceptJSON(): boolean;
get query(): Record<string, string>;
get queries(): Record<string, string[]>;
curl(url: HttpClientRequestURL, options?: HttpClientRequestOptions): ReturnType<HttpClient['request']>;
get router(): Router;
set router(val: Router);
Expand Down

0 comments on commit 02aaf1e

Please sign in to comment.