Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: haouvw <jchaodaohang@foxmail.com>
  • Loading branch information
haouvw committed Aug 27, 2024
1 parent 6e48bfd commit 8b4af57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion sample/18-context/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8b4af57

Please sign in to comment.