반응형
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
- Node.js
- 그래프
- 프로그래머스
- ip
- Crawling
- 타입스크립트
- type challenge
- socket
- HTTP 완벽 가이드
- 알고리즘
- typescript
- HTTP
- 프로그래머스 레벨 2
- TCP
- Algorithm
- dp
- 자바스크립트
- 소켓
- 문자열
- javascript
- 백준
- BFS
- 타입 챌린지
- 수학
- dfs
- 레벨 1
- 쉬운 문제
- 가천대
- 크롤링
- Nestjs
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