如何在Typescript中获取接口的非只读属性?

时间:2020-05-21 05:03:28

标签: typescript

假设我具有以下界面:

interface Bar {
  readonly x: string
  y: string
  readonly z: string
}

如何定义F使其与F<Bar>等效,{y: string}的所有readonly属性都被省略?

0 个答案:

没有答案