Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigService 타입 세이프하게 사용하도록 수정하기 #23

Open
Coalery opened this issue Oct 3, 2023 · 0 comments
Open
Assignees
Labels
refactoring Refactor code request

Comments

@Coalery
Copy link
Member

Coalery commented Oct 3, 2023

현재 레포에서 사용하고 있는 @nestjs/config 모듈의 ConfigService는 다음과 같이 config를 가져오게 됩니다.

this.configService.get<TReturn>('some.config');

이때 'some.config' 부분이 틀릴 경우 원하는 결과가 나오지 않을 수도 있습니다. 따라서 좀 더 타입 세이프하게 사용할 수 있도록 수정해야 합니다.

@Coalery Coalery self-assigned this Oct 3, 2023
@Coalery Coalery added feature New feature or request refactoring Refactor code request and removed feature New feature or request labels Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactor code request
Projects
None yet
Development

No branches or pull requests

1 participant