xxxxxxxxxx
interface EnumServiceItem {
id: string;
label: string;
}
interface ServiceType {
id: string,
label: string,
childList?: Array<EnumServiceItem>
}
type ServiceListType = Array<ServiceType>
xxxxxxxxxx
export interface named_interface{
[index:number]:{
img:string,
alt:string,
heading:string,
description:string,
link:string
}
}
///output
[
{
img:"img1.jpg",
alt:"large Image",
heading:"Lorem Ipsum Dolor 1",
description:"Description Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor",
link_bricks:""
}
]