This commit is contained in:
Belen Curcio
2021-01-06 17:01:32 -03:00
parent eedfdc0a10
commit a8814983a6
2 changed files with 82 additions and 0 deletions

25
framework/types.d.ts vendored Normal file
View 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
}