mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
More Types
This commit is contained in:
parent
c3c1ac7cf5
commit
ab16960ddb
17
framework/types.d.ts
vendored
17
framework/types.d.ts
vendored
@ -23,7 +23,7 @@ interface ProductPrice {
|
||||
type?: 'price' | 'retail' | 'sale' | string
|
||||
}
|
||||
|
||||
interface Wishlist {
|
||||
interface Cart {
|
||||
id: string
|
||||
products: Pick<Product, 'id' | 'name' | 'prices'>[]
|
||||
}
|
||||
@ -33,11 +33,22 @@ interface Wishlist {
|
||||
products: Pick<Product, 'id' | 'name' | 'prices'>[]
|
||||
}
|
||||
|
||||
interface Order {}
|
||||
|
||||
interface Customer {
|
||||
id: string
|
||||
name: string
|
||||
email: string
|
||||
}
|
||||
|
||||
interface Category {}
|
||||
interface Category {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
|
||||
interface Brand {}
|
||||
interface Brand {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
|
||||
type Features = 'wishlist' | 'customer'
|
||||
|
Loading…
x
Reference in New Issue
Block a user