Skip to content

Commit 02aaf1e

Browse files
committed
f
1 parent e2f05c9 commit 02aaf1e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/extend/context.ts

+8
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,14 @@ export default class Context extends EggCoreContext {
308308
declare module '@eggjs/core' {
309309
// add Context overrides types
310310
interface Context {
311+
proxy: any;
312+
performanceStarttime: number;
313+
starttime: number;
314+
runInBackground(scope: (ctx: Context) => Promise<void>, taskName?: string): void;
315+
_runInBackground(scope: (ctx: Context) => Promise<void>, taskName: string): void;
316+
get acceptJSON(): boolean;
317+
get query(): Record<string, string>;
318+
get queries(): Record<string, string[]>;
311319
curl(url: HttpClientRequestURL, options?: HttpClientRequestOptions): ReturnType<HttpClient['request']>;
312320
get router(): Router;
313321
set router(val: Router);

0 commit comments

Comments
 (0)