I have two interface define as below.
interface TitleFont{
fontFamily:string;
fontStyle:string;
size:string; \\ need only for the title property.
opacity:number;
}
interface ChartFont{
fontFamily:string;
fontStyle:string;
opacity:number;
}
Two property in my class is of defined interface type:
class Chart {
title: TitleFont;
chartTitle: ChartFont;
}
Size is the extra property added in TilteFont when compared to ChartFont. Is there any way to define one interface and make use of it for both the property?
Thanks in advance