Best way to derive a type with only the own properties of another in TypeScript?

后端 未结 0 434
傲寒
傲寒 2021-02-02 05:07

Given the interfaces (these could also be classes):

interface A { a: number }
interface B { b: number }
interface C extends B { c: numbe         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题