type subProp = {
id: string,
name: string
};
type ParentProps = {
subscriptions?: [
{
id: string,
items: [???Array Of subProp???]
}
]
}
Is this case doable in typescript with only type alias? If so, how to do it? I can't find any viable option online. If no, what's the alternative?