【发布时间】:2020-01-16 11:48:07
【问题描述】:
是否可以将接口的一部分用作 Typescript 中的新接口? 例如我有下面的界面:
interface Mobile{
canCall: boolean;
haveScreen: boolean;
isItIOS: boolean;
brand: string;
}
现在我只想使用一些Mobile界面数据,例如我只需要:
interface phone{
canCall: boolean;
brand: string;
}
如何在手机界面使用手机界面数据?
【问题讨论】:
标签: typescript interface