interface IType {
name: string;
label: string;
checked?: boolean;
disabled?: boolean;
}
interface Category {
name: string;
label: string;
description: string;
}
type Data = Array<{
name: string;
label: string;
description: string;
types: IType[];
}>;
I have the above type descriptions. If you see the interface Category has same three keys as in type Data. How can I refer the interface Category inside my type Data without duplicating as I am doing above. Please note that I do not want additional key in my type Data.
Thanks