Linked Questions

Popular Questions

Two interface are there first one is ICat and second one is IMammal. IMammal extends ICat. Will the Cat property in IMammal have the capability to access all the property of ICat interface?

export interface ICat {
    Cateye: string[];
    Color: string;    
    Name: string;
}

export interface IMammal extends ICat {
    Description: string;
    HasImage: boolean;   
    CatGroup: string[];
    **Cat: ICat[]**;
}

Basically, how can I achieve multiple interface inheritances in Typescript?

Related Questions