일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- configmodule
- npm
- equal 타입
- 타입챌린지
- 회고록
- HTTP
- TypeScript
- typeorm
- 회고
- 스터디
- 타입 챌린지
- typescript type challenge
- 굿바이 2024년
- 백엔드
- network
- configservice
- 2024년 회고록
- 코딩테스트
- 해커톤
- 와글와글
- Type Challenge
- type-safe configservice
- type challenge equal type
- 타입스크립트
- 월간cs
- node.js
- microsoft azure openai
- nestjs
- TypeScript 타입챌린지
- 이펙티브 타입스크립트
- Today
- Total
목록Type Challenge (11)
iamkanguk.dev
사전지식해당 글을 읽기 전에 Type Challenge에서 제공하는 Equal Type에 대한 이해도가 필요합니다.아래 포스팅은 제가 열심히 작성해 본 글이니 확인 한번 하시면 좋을 것 같아요! https://dev-iamkanguk.tistory.com/entry/TypeScript-Type-Challenge-Equal-Type-%EB%B6%84%EC%84%9D%ED%95%98%EA%B8%B0 [TypeScript + Type-Challenge] Equal Type 분석하기Type Challenge를 풀어본 사람이라면 Equal Type을 Type Challenge 문제에서 유틸 함수로 제공을 해준다는 것을 알 수 있을 것이다.필자는 해당 문제를 풀면서 여러가지 궁금한 점이 있어서 이렇게 글을 쭉dev..
Type Challenge를 풀어본 사람이라면 Equal Type을 Type Challenge 문제에서 유틸 함수로 제공을 해준다는 것을 알 수 있을 것이다.필자는 해당 문제를 풀면서 여러가지 궁금한 점이 있어서 이렇게 글을 쭉 작성해보려고 한다.아직 100% 완벽하게 이해하지 못해서 주변에 자문을 많이 구해보려고 한다 (명확한 답안을 찾지 못함) https://github.com/type-challenges/type-challenges/blob/main/questions/00599-medium-merge/README.md type-challenges/questions/00599-medium-merge/README.md at main · type-challenges/type-challengesCollec..
https://github.com/type-challenges/type-challenges/blob/main/questions/00012-medium-chainable-options/README.md type-challenges/questions/00012-medium-chainable-options/README.md at main · type-challenges/type-challengesCollection of TypeScript type challenges with online judge - type-challenges/type-challengesgithub.com 타입스크립트 스터디도 진행하면서 타입에 조금 더 자신이 생겼다고 생각했지만 이 문제를 보자마자 이해 자체를 하지 못했다.그래서 다른 분..
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-challengesCollection of TypeScript type challenges with online judge - type-challenges/type-challengesgithub.com TypeScript에서 지원하는 Utility Type인 Omit을 직접 구현해보는 문제였다.해당 문제를 구현하면서 헷갈렸던 부분을 정리하려고 한다. Omit에 대한 자세한 설명을 ..
문제 https://github.com/iamkanguk97/type-challenges/blob/main/questions/05153-medium-indexof/README.md type-challenges/questions/05153-medium-indexof/README.md at main · iamkanguk97/type-challenges Collection of TypeScript type challenges with online judge - iamkanguk97/type-challenges github.com 풀이 /* _____________ Your Code Here _____________ */ /* _____________ Test Cases _____________ */ impor..
문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00009-medium-deep-readonly/README.md type-challenges/questions/00009-medium-deep-readonly/README.md at main · type-challenges/type-challenges Collection of TypeScript type challenges with online judge - type-challenges/type-challenges github.com 풀이 /* _____________ 여기에 코드 입력 _____________ */ type DeepReadonly = { readonly ..
문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00008-medium-readonly-2/README.md type-challenges/questions/00008-medium-readonly-2/README.md at main · type-challenges/type-challenges Collection of TypeScript type challenges with online judge - type-challenges/type-challenges github.com 정답 // 1번째 방법과 2번째 방법의 차이는 내장 메서드인 Omit을 사용했냐 안했냐의 차이! // 다양하게 구현할 수 있었던 문제였던 것 같음. 하..
문제 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: ..
문제 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 ..
문제 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 타..