huihuilang53 / ts-challenges

ts类型体操刷题总结

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

readonly2

huihuilang53 opened this issue · comments

commented

type MyReadonly2<T, K extends keyof T = keyof T> = {readonly [key in K ] : T[key]} & Omit<T,K>