I want to create a new type called Items, that will contain somethin like this:
type Items<TParent extends string> = {
[`${TParent}Products`]: {
items: ProductItems<TParent>;
image: Image;
};
[`${TParent}Addons`]: {
items: ProductItems<TParent>;
image: Image;
};
};
where TParent will be the name - always string - of a product category.
How can i turn TParent in to the real string value