StudyPlayground / TypeScript-Exercise-Challenges

Typescript exercise & challenges
2 stars 0 forks source link

Type Challenges 4-Pick #17

Open kscory opened 6 months ago

kscory commented 6 months ago

답안을 작성해주세요.

bananana0118 commented 6 months ago
type MyPick<T, K extends keyof T> = {[P in K]:T[P]}
kscory commented 6 months ago
type MyPick<T extends object, K extends keyof T> = {
    [key in K]: T[key]
}
wogha95 commented 6 months ago
type MyPick<T, K extends keyof T> = {
  [key in K]: T[key]
}