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