chore: fix some comments

Signed-off-by: haouvw <jchaodaohang@foxmail.com>
This commit is contained in:
haouvw
2024-08-27 19:08:27 +08:00
parent 6e48bfdb9b
commit 8b4af57604
3 changed files with 3 additions and 3 deletions

View File

@@ -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<Injectable> | ForwardReference,
token: string,
) {

View File

@@ -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);

View File

@@ -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');