Skip to content

Commit

Permalink
fix(): type instatiation excussively deep error
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 22, 2021
1 parent d912527 commit b85f734
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface ConfigGetOptions {

@Injectable()
export class ConfigService<
K = Record<string, unknown>,
K extends Record<string, unknown> = Record<string, unknown>,
WasValidated extends boolean = false,
> {
private set isCacheEnabled(value: boolean) {
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@commitlint/cli": "15.0.0",
"@commitlint/config-angular": "15.0.0",
"@nestjs/common": "8.2.2",
"@nestjs/common": "8.2.3",
"@nestjs/core": "8.2.2",
"@nestjs/platform-express": "8.2.2",
"@nestjs/testing": "8.2.2",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/optional-generic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('Optional Generic()', () => {
});

it(`should allow any key without a generic and with the default value`, () => {
const configService = moduleRef.get<ConfigService>(ConfigService);
const configService = moduleRef.get(ConfigService);
const port = configService.get('PORT2', 'default');

expect(port).toEqual('default');
Expand Down

0 comments on commit b85f734

Please sign in to comment.