Skip to content

Typescript AxiosError response.data의 내부 type 지정 관련 질문 #636

Answered by woohm402
HyeongtaekOh asked this question in Q&A
Discussion options

You must be logged in to vote

이전가지의 해결방법과 마찬가지로 해당 부분 소스 를 보면 generic을 이용해 어떻게 잘 구현되어 있단 걸 확인할 수 있습니다.

e as AxiosError<뭔가>

T를 잡아주시면 됩니다.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@woohm402
Comment options

@woohm402
Comment options

@HyeongtaekOh
Comment options

HyeongtaekOh Nov 5, 2021
Collaborator Author

@HyeongtaekOh
Comment options

HyeongtaekOh Nov 5, 2021
Collaborator Author

Answer selected by HyeongtaekOh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
React React 관련 내용 question 질문으로 사용될 이슈
2 participants