일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 노드 교과서 개정2판
- TypeScript 타입챌린지
- node.js
- 스터디 회고
- 타입 챌린지 IndexOf
- 이펙티브 타입스크립트
- 타입 챌린지
- 와글와글
- 맵필로그
- Mappilogue
- 코딩테스트
- 189-Awaited
- 타입스크립트
- 해커톤
- 백엔드
- 타입챌린지
- HTTP
- nestjs
- TypeScript
- network
- typeorm
- 월간cs
- Type Challenge
- 와글와글 해커톤
- 타입 챌린지 Deep Readonly
- Conditional Types
- 타입챌린지 Readonly2
- type challenge omit
- npm
- Array.prototype.push
- Today
- Total
목록타입 챌린지 (4)
iamkanguk.dev
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/UP4ch/btsF4YGF375/iWVJOxC1XlvxN4KgPN5DFk/img.png)
문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00003-medium-omit/README.md type-challenges/questions/00003-medium-omit/README.md at main · type-challenges/type-challenges Collection of TypeScript type challenges with online judge - type-challenges/type-challenges github.com 풀이 type MyOmit = { [U in keyof T as U extends K ? never : U]: T[U] } /* _____________ 테스트 케이스 __..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cgTiDI/btsFT1xhOW4/QAUdldoLYqv2KtUCKek4Kk/img.png)
문제 https://github.com/iamkanguk97/type-challenges/blob/main/questions/00189-easy-awaited/README.md 풀이 type MyAwaited = T extends PromiseLike ? R extends PromiseLike ? MyAwaited : R : never; /* _____________ 테스트 케이스 _____________ */ import type { Equal, Expect } from '@type-challenges/utils' type X = Promise type Y = Promise type Z = Promise type Z1 = Promise type T = { then: (onfulfilled: (arg: ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/d4hDUD/btsFF8w2L1Z/2dKmM5rMipl8vAvQBY7PX1/img.png)
문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00014-easy-first/README.md type arr1 = ['a', 'b', 'c'] type arr2 = [3, 2, 1] type head1 = First // expected to be 'a' type head2 = First // expected to be 3 Expect, Expect 123>>, Expect, Expect, 풀이 // S1 type First = T extends [] ? never : T[0]; // S2 type First = T["length"] extends 0 ? never : T[0]; // S3 type First = T ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bh3B2R/btsFFlpUxsR/mgTJk72fONDtKluAi9GkNk/img.png)
문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00011-easy-tuple-to-object/README.ko.md const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const; type result = TupleToObject // expected { tesla: 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'} 풀이 type TupleToObject = { [V in T[number]]: V } How to Solve? T extends readonly any[]: any 타..