有两个接口,第一个是ICat,第二个是IMammal。
IMammal延伸ICat。中的Cat属性IMammal是否可以访问ICat接口的所有属性?
export interface ICat {
Cateye: string[];
Color: string;
Name: string;
}
export interface IMammal extends ICat {
Description: string;
HasImage: boolean;
CatGroup: string[];
**Cat: ICat[]**;
}
Run Code Online (Sandbox Code Playgroud)
基本上,我如何在Typescript中实现多个接口继承?