Skip to content

Commit

Permalink
fix: fix currentContext typo
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Dec 21, 2022
1 parent af78b29 commit 5ac13a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ declare module 'egg' {
* Get current execute ctx, maybe undefined
* @returns {Context} ctx - current execute Context
*/
get currentConext(): Context;
get currentContext(): Context;
}

export interface IApplicationLocals extends PlainObject { }
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/apps/app-ts/app/controller/foo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class FooController extends Controller {
this.ctxHttpClient = ctx.httpclient;
this.fooLogger = ctx.getLogger('foo');
assert(ctx.app.ctxStorage);
assert(!ctx.app.currentConext);
assert(ctx.app.currentContext);
}

async getData() {
Expand Down

0 comments on commit 5ac13a3

Please sign in to comment.