Is there a way to assign types to objects with different keys and values, but where "other" remains constant across all of them? How can this be achieved using TypeScript?
{
color: "red",
size: "small",
other: {
price: 345
discount: 10
}
}
{
ram: "4 GB",
brand: "Samsung",
other: {
price: 755
discount: 30
}
}