dingxyang/type-challenges

8 - Readonly

dingxyang opened this issue · 0 comments

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