mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
changes
This commit is contained in:
25
framework/types.d.ts
vendored
Normal file
25
framework/types.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
interface Product {
|
||||
id: string | number
|
||||
name: string
|
||||
description: string
|
||||
images: Images[]
|
||||
slug: string
|
||||
price: string
|
||||
variantId: string
|
||||
}
|
||||
|
||||
interface Images {
|
||||
src: string
|
||||
alt?: string
|
||||
}
|
||||
|
||||
interface NextImage {
|
||||
src: string
|
||||
width: number | string
|
||||
height: number | string
|
||||
layout?: 'fixed' | 'intrinsic' | 'responsive' | undefined
|
||||
priority?: boolean
|
||||
loading?: 'eager' | 'lazy'
|
||||
sizes?: string
|
||||
alt?: string
|
||||
}
|
Reference in New Issue
Block a user