I'm currently working with Angular 2.
Typically, when I specify a type, I start by creating an interface:
interface Product {
name: string,
count: number
}
and then use it like this:
let product: Product;
However, now I need to temporarily define an Object type. Something along the lines of:
let product: Object<name: string, count: number>;
This approach is incorrect. How can I properly achieve this? Thank you