Skip to content

Commit bf73768

Browse files
committed
chore: typo fix
1 parent 83098e2 commit bf73768

16 files changed

Lines changed: 18 additions & 18 deletions

packages/common/cache/interfaces/cache-module.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CacheManagerOptions } from './cache-manager.interface';
44
export type CacheModuleOptions<
55
StoreConfig extends Record<any, any> = Record<string, any>,
66
> =
7-
// Store-specfic configuration takes precedence over cache module options due
7+
// Store-specific configuration takes precedence over cache module options due
88
// to how `createCacheManager` is implemented.
99
CacheManagerOptions &
1010
StoreConfig & {

packages/common/interfaces/nest-application-context.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface INestApplicationContext {
7272
enableShutdownHooks(signals?: ShutdownSignal[] | string[]): this;
7373

7474
/**
75-
* Initalizes the Nest application.
75+
* Initializes the Nest application.
7676
* Calls the Nest lifecycle events.
7777
* It isn't mandatory to call this method directly.
7878
*

packages/common/interfaces/version-options.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type VersionValue =
1818
export interface VersionOptions {
1919
/**
2020
* Specifies an optional API Version. When configured, methods
21-
* withing the controller will only be routed if the request version
21+
* within the controller will only be routed if the request version
2222
* matches the specified value.
2323
*
2424
* Supported only by HTTP-based applications (does not apply to non-HTTP microservices).

packages/common/services/console-logger.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class ConsoleLogger implements LoggerService {
188188
const contextMessage = context ? yellow(`[${context}] `) : '';
189189
const timestampDiff = this.updateAndGetTimestampDiff();
190190
const formattedLogLevel = logLevel.toUpperCase().padStart(7, ' ');
191-
const formatedMessage = this.formatMessage(
191+
const formattedMessage = this.formatMessage(
192192
logLevel,
193193
message,
194194
pidMessage,
@@ -197,7 +197,7 @@ export class ConsoleLogger implements LoggerService {
197197
timestampDiff,
198198
);
199199

200-
process[writeStreamType ?? 'stdout'].write(formatedMessage);
200+
process[writeStreamType ?? 'stdout'].write(formattedMessage);
201201
});
202202
}
203203

packages/common/test/file-stream/streamable-file.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { StreamableFile } from '../../file-stream';
44

55
describe('StreamableFile', () => {
66
describe('when input is a readable stream', () => {
7-
it('should assing it to a stream class property', () => {
7+
it('should assign it to a stream class property', () => {
88
const stream = new Readable();
99
const streamableFile = new StreamableFile(stream);
1010
expect(streamableFile.getStream()).to.equal(stream);
1111
});
1212
});
1313
describe('when input is an object with "pipe" method', () => {
14-
it('should assing it to a stream class property', () => {
14+
it('should assign it to a stream class property', () => {
1515
const stream = { pipe: () => {} };
1616
const streamableFile = new StreamableFile(stream as any);
1717
expect(streamableFile.getStream()).to.equal(stream);

packages/core/injector/lazy-module-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class LazyModuleLoader {
2626
);
2727
if (moduleInstances.length === 0) {
2828
// The module has been loaded already. In this case, we must
29-
// retrieve a module reference from the exising container.
29+
// retrieve a module reference from the existing container.
3030
const { token } = await this.moduleCompiler.compile(
3131
moduleClassOrDynamicDefinition,
3232
);

packages/core/test/injector/injector.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ describe('Injector', () => {
595595
});
596596
});
597597

598-
describe('when instanceWraper has async property', () => {
598+
describe('when instanceWrapper has async property', () => {
599599
it('should await instance', async () => {
600600
sinon.stub(injector, 'loadProvider').callsFake(() => null);
601601

packages/core/test/injector/internal-core-module-factory.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { InternalCoreModule } from '../../injector/internal-core-module';
88
import { InternalCoreModuleFactory } from '../../injector/internal-core-module-factory';
99

1010
describe('InternalCoreModuleFactory', () => {
11-
it('should return the interal core module definition', () => {
11+
it('should return the internal core module definition', () => {
1212
const moduleDefinition = InternalCoreModuleFactory.create(
1313
new NestContainer(),
1414
null,

packages/core/test/router/router-response-controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ data: test
356356
request as unknown as IncomingMessage,
357357
);
358358
} catch {
359-
// Wether an error is thrown or not
359+
// Whether an error is thrown or not
360360
// is not relevant, so long as
361361
// result is not called
362362
}

packages/microservices/ctx-host/mqtt.context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class MqttContext extends BaseRpcContext<MqttContextArgs> {
1515
}
1616

1717
/**
18-
* Returns the refernce to the original MQTT packet.
18+
* Returns the reference to the original MQTT packet.
1919
*/
2020
getPacket() {
2121
return this.args[1];

0 commit comments

Comments
 (0)