标签: typescript
假设我具有以下界面:
interface Bar { readonly x: string y: string readonly z: string }
如何定义F使其与F<Bar>等效,{y: string}的所有readonly属性都被省略?
F
F<Bar>
{y: string}
readonly