#Is it possible to represent this data using TS Interfaces?
4 messages · Page 1 of 1 (latest)
That's what the Record utility type is for
Record<string, number>
Your whole object would be typed as
type Something = {
productCount: Record<string, number>
}
perfect! thank you sir!