Interface defining the required properties for a product history entry. Used to store the history of products that were clicked on.
const productHistoryEntry: ProductHistoryEntry = { timestamp: Date.now(), type: "product", data: { title: "Sodium Chloride", url: "https://example.com/sodium-chloride" price: 100, currencyCode: "USD", currencySymbol: "$", quantity: 1, uom: "g" }}; Copy
const productHistoryEntry: ProductHistoryEntry = { timestamp: Date.now(), type: "product", data: { title: "Sodium Chloride", url: "https://example.com/sodium-chloride" price: 100, currencyCode: "USD", currencySymbol: "$", quantity: 1, uom: "g" }};
Optional
Interface defining the required properties for a product history entry. Used to store the history of products that were clicked on.
Example