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

fix: MapUtil.get return type, with function overloading #220

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

elegantcoder
Copy link
Contributor

PR 의 종류는 어떤 것인가요?

  • 버그 수정

수정이 필요하게된 이유가 무엇인가요? (Jira 이슈가 있다면 링크를 연결해주세요)

MapUtil.get 은 defaultValue 를 받을 수 있습니다.
이것을 Map.get() 이 undefined 유니언 타입을 리턴하는 것에 대한 방어 차원으로 사용할 수 있습니다.

그런데 용도에 맞지 않게 undefined 유니언 타입이 리턴되고 있어 함수 오버로딩을 통해 지원하도록 수정했습니다.

무엇을 어떻게 변경했나요?

코드 변경을 이해하기 위한 배경지식이 필요하다면 설명 해주세요.

디펜던시 변경이 있나요?

어떻게 테스트 하셨나요?

코드의 실행결과를 볼 수 있는 로그나 이미지가 있다면 첨부해주세요.

@elegantcoder elegantcoder self-assigned this Jun 18, 2024
@day1-dev-adm day1-dev-adm added the bug Something isn't working label Jun 18, 2024
@elegantcoder elegantcoder requested review from soomtong and a team June 18, 2024 07:03
Copy link
Contributor

@moonimooni moonimooni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elegantcoder elegantcoder merged commit ec5a3cd into main Jun 18, 2024
2 checks passed
@elegantcoder elegantcoder deleted the fix/map-util-get-return-type branch June 18, 2024 08:46
@elegantcoder elegantcoder changed the title fix: MapUtil.get return type, to use function overloading fix: MapUtil.get return type, with function overloading Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants