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

26 lines
467 B
TypeScript
Raw Normal View History

2021-01-06 17:01:32 -03:00
interface Product {
id: string | number
name: string
description: string
2021-01-07 11:19:28 -03:00
images: Image[]
2021-01-06 17:01:32 -03:00
slug: string
price: string
variantId: string
}
2021-01-07 11:19:28 -03:00
interface Image {
2021-01-06 17:01:32 -03:00
src: string
alt?: string
}
2021-01-06 21:24:09 -03:00
// interface NextImageProps {
// src: string
// width: number | string
// height: number | string
// layout?: 'fixed' | 'intrinsic' | 'responsive' | undefined
// priority?: boolean
// loading?: 'eager' | 'lazy'
// sizes?: string
// alt?: string
// }