---
title: "Discussion on \"[type-challenges\n] Pick / Readonly / Tuple to Object 구현\" | Hashnode"
description: "Discussion on \"[type-challenges\n] Pick / Readonly / Tuple to Object 구현\". Pick<T, K>\n설계 의도\n\nK타입은 T 타입의 key만 오도록 제한\n\nMapped Types 사용해서 제한된 key 타입에 해당하는 타입만 리턴하도록 처리\n\n\n코드\n/* _____________ Your Code Here _____________ */\n\ntype MyPick<T, K extends keyof T> = {\n  [P in K] : T[P]\n}\n\n/* _____________ Test Cases _____________ */\ni..."
url: "https://hashnode.com/posts/type-challenges-pick-readonly-tuple-to-object/682c1f3a5013f124ef90489c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[type-challenges \] Pick / Readonly / Tuple to Object 구현](https://yarnmi.hashnode.dev/type-challenges-pick-readonly-tuple-to-object?utm_source=hashnode&utm_medium=feed)

Pick<T, K> 설계 의도 K타입은 T 타입의 key만 오도록 제한 Mapped Types 사용해서 제한된 key 타입에 해당하는 타입만 리턴하도록 처리 코드 /\* \_\_\_\_\_\_\_\_\_\_\_\_\_ Your Code Here \_\_\_\_\_\_\_\_\_\_\_\_\_ \*/ type MyPick<T, K extends keyof T> = { \[P in K\] : T\[P\] } /\* \_\_\_\_\_\_\_\_\_\_\_\_\_ Test Cases \_\_\_\_\_\_\_\_\_\_\_\_\_ \*/ i...

May 20, 2025 · 2 min read · yarnmi.hashnode.dev  
Read the article

-   [#type-challenges](https://hashnode.com/tag/type-challenges)

## Written by

[mmyeon](https://hashnode.com/@yarnmi)

@yarnmi

  
[View profile](https://hashnode.com/@yarnmi)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
