From 4c7117218e98effa8efb936c54f902b49580cc41 Mon Sep 17 00:00:00 2001 From: Valerii Petryniak <44531564+valerii15298@users.noreply.github.com> Date: Sat, 23 Dec 2023 17:08:00 +0200 Subject: [PATCH] Update execution-context.md When we say **type** usually it means typescript type. In this case it will be a **class** itself returned so such naming is more understandable. --- content/fundamentals/execution-context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/fundamentals/execution-context.md b/content/fundamentals/execution-context.md index 7c9afae0f6..9c6c0c23ed 100644 --- a/content/fundamentals/execution-context.md +++ b/content/fundamentals/execution-context.md @@ -117,7 +117,7 @@ export interface ExecutionContext extends ArgumentsHost { } ``` -The `getHandler()` method returns a reference to the handler about to be invoked. The `getClass()` method returns the type of the `Controller` class which this particular handler belongs to. For example, in an HTTP context, if the currently processed request is a `POST` request, bound to the `create()` method on the `CatsController`, `getHandler()` returns a reference to the `create()` method and `getClass()` returns the `CatsController` **type** (not instance). +The `getHandler()` method returns a reference to the handler about to be invoked. The `getClass()` method returns the type of the `Controller` class which this particular handler belongs to. For example, in an HTTP context, if the currently processed request is a `POST` request, bound to the `create()` method on the `CatsController`, `getHandler()` returns a reference to the `create()` method and `getClass()` returns the `CatsController` **class** (not instance). ```typescript const methodKey = ctx.getHandler().name; // "create"