반응형
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 | 29 | 30 |
Tags
- 타입 챌린지
- 문자열
- javascript
- 쉬운 문제
- HTTP 완벽 가이드
- BFS
- Algorithm
- HTTP
- 수학
- 크롤링
- 백준
- 알고리즘
- 레벨 1
- TCP
- socket
- Crawling
- 그래프
- 프로그래머스
- Nestjs
- 자바스크립트
- type challenge
- dp
- 프로그래머스 레벨 2
- dfs
- Node.js
- 타입스크립트
- 소켓
- 가천대
- ip
- typescript
Archives
- Today
- Total
목록IsUnion (1)
kakasoo
IsUnion
type IsPartitionSameEntire = T extends P ? P extends T ? true : false : false; type IsUnion = IsPartitionSameEntire extends true ? false : IsPartitionSameEntire extends false ? false : true; 조금 지저분한 풀이긴 하지만, 분산 법칙을 이용해서 푸는 방법이 있다. Equal 타입을 구현하다가 안 것인데, type Equal = X extends Y ? (Y extends X ? true : false) : false; type a5 = Equal; // boolean type a6 = Equal; // boolean Equal을 다음과 같이 X가 Y일 때 Y..
프로그래밍/TypeScript
2023. 4. 13. 01:01