반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 가천대
- 문자열
- Nestjs
- 타입 챌린지
- type challenge
- Crawling
- HTTP
- Algorithm
- dfs
- 레벨 1
- 소켓
- dp
- TCP
- 프로그래머스
- Node.js
- 수학
- HTTP 완벽 가이드
- 쉬운 문제
- 그래프
- typescript
- BFS
- 자바스크립트
- 프로그래머스 레벨 2
- javascript
- socket
- 크롤링
- 타입스크립트
- 백준
- ip
- 알고리즘
Archives
- Today
- Total
목록TypeChallenge (1)
kakasoo
TupleToUnion 타입 정의하기
https://github.com/type-challenges/type-challenges/blob/main/questions/00010-medium-tuple-to-union/README.md type Arr = ['1', '2', '3'] type Test = TupleToUnion // expected to be '1' | '2' | '3' answer type TupleToUnion = any type TupleToUnion = T[number]; 답을 먼저 제시한다. 답을 추론해 나가는 과정도 아래 서술하겠지만, 사실 이런 서술을 무시하고도 Tuple을 Union으로 변환하는 게 저게 전부임을, 직관적으로 깨닫는 사람도 분명 있을 거라 생각한다. type TupleToUnion = T['leng..
프로그래밍/TypeScript
2023. 2. 17. 00:45