4
0
forked from crowetic/commerce
commerce/framework/types.d.ts

21 lines
348 B
TypeScript
Raw Normal View History

2021-01-07 11:58:00 -03:00
interface ProductImage {
url: string
alt?: string
}
2021-01-06 17:01:32 -03:00
interface Product {
id: string | number
name: string
description: string
2021-01-07 11:58:00 -03:00
images: ProductImage[]
prices: ProductPrice[]
2021-01-06 17:01:32 -03:00
slug: string
2021-01-07 11:58:00 -03:00
path?: string
2021-01-06 17:01:32 -03:00
}
2021-01-07 11:58:00 -03:00
interface ProductPrice {
value: number | string
currencyCode: 'USD' | 'ARS'
type?: 'price' | 'retail' | 'sale' | string
2021-01-06 17:01:32 -03:00
}