Replies: 3 comments 2 replies
-
|
ㅋㅋㅋㅋㅋㅋㅋ안그래도 토스 부탁드리려고 했는데 감사함돠!! |
Beta Was this translation helpful? Give feedback.
-
|
제네릭 타입은 타입을 엄격하게 규격하기 보다는 조금 더 유연하게 사용함을 용도로 하는 것으로 알고 있습니다.
|
Beta Was this translation helpful? Give feedback.
-
|
제네릭을 사용하는 이유는 크게 재사용성과 확장성 때문이라고 생각합니다. 동일한 비즈니스 로직에 타입이 다른 데이터를 요청보내야하는 상황이라면 제네릭을 사용하기 적합합니다. any를 사용하는 것과의 차이는 any는 타입 체크를 포기하는 것이고, 제네릭은 타입 정보를 보존합니다. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
타입스크립트에서 제네릭(Generic)을 사용하는 이유는 무엇이며, any를 사용하는 것과 어떤 차이가 있나요?
@klmhyeonwoo @prgmr99
Beta Was this translation helpful? Give feedback.
All reactions