From 8b4af57604a8b2c0abf1a6e26d7426cf77f7091f Mon Sep 17 00:00:00 2001 From: haouvw Date: Tue, 27 Aug 2024 19:08:27 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: haouvw --- packages/core/scanner.ts | 2 +- packages/core/test/router/router-response-controller.spec.ts | 2 +- sample/18-context/src/main.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/scanner.ts b/packages/core/scanner.ts index 4f720b36cd6..8f334992e85 100644 --- a/packages/core/scanner.ts +++ b/packages/core/scanner.ts @@ -522,7 +522,7 @@ export class DependenciesScanner { } public insertExportedProvider( - // TODO: improve the type definition bellow because it doesn't reflects the real usage of this method + // TODO: improve the type definition below because it doesn't reflects the real usage of this method exportedProvider: Type | ForwardReference, token: string, ) { diff --git a/packages/core/test/router/router-response-controller.spec.ts b/packages/core/test/router/router-response-controller.spec.ts index 1fdd92e7b2b..9e48d83a00e 100644 --- a/packages/core/test/router/router-response-controller.spec.ts +++ b/packages/core/test/router/router-response-controller.spec.ts @@ -382,7 +382,7 @@ data: test beforeEach(() => { // Can't access to the internal sseStream, - // as a workround, set `defaultMaxListeners` of `SseStream` and reset the max listeners of `process` + // as a workaround, set `defaultMaxListeners` of `SseStream` and reset the max listeners of `process` const PROCESS_MAX_LISTENERS = process.getMaxListeners(); SseStream.defaultMaxListeners = MAX_LISTENERS; process.setMaxListeners(PROCESS_MAX_LISTENERS); diff --git a/sample/18-context/src/main.ts b/sample/18-context/src/main.ts index eda00432aed..a6e8f13a86e 100644 --- a/sample/18-context/src/main.ts +++ b/sample/18-context/src/main.ts @@ -8,7 +8,7 @@ async function bootstrap() { const appService = app.get(AppService); console.log('AppService#getHello:', appService.getHello()); - // Note that bellow we can't use `app.select(MyDynamicModule)` otherwise we would get an error as the static version of `MyDynamicModule` was not imported anywhere + // Note that below we can't use `app.select(MyDynamicModule)` otherwise we would get an error as the static version of `MyDynamicModule` was not imported anywhere const myDynamicProviderValue = app .select(dynamicModule) .get('MyDynamicProvider');