4
0
forked from crowetic/commerce
commerce/framework/types.d.ts
2021-01-07 11:58:00 -03:00

21 lines
348 B
TypeScript

interface ProductImage {
url: string
alt?: string
}
interface Product {
id: string | number
name: string
description: string
images: ProductImage[]
prices: ProductPrice[]
slug: string
path?: string
}
interface ProductPrice {
value: number | string
currencyCode: 'USD' | 'ARS'
type?: 'price' | 'retail' | 'sale' | string
}