My Firebase database is organized in the following manner:
user: {
cart: {
"randomid": quantity,
"randomid": quantity
}
}
I want to avoid hardcoding item ids into a flow type. Is there a way to define a type where every key is a number, similar to this:
type User = {
cart: {
*: number
}
}
Although I understand it's not the best solution, altering the database structure is not an option for me at this point.