forked from crowetic/commerce
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
|
type?: 'price' | 'retail' | 'sale' | string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Wishlist {
|
interface Cart {
|
||||||
id: string
|
id: string
|
||||||
products: Pick<Product, 'id' | 'name' | 'prices'>[]
|
products: Pick<Product, 'id' | 'name' | 'prices'>[]
|
||||||
}
|
}
|
||||||
@ -33,11 +33,22 @@ interface Wishlist {
|
|||||||
products: Pick<Product, 'id' | 'name' | 'prices'>[]
|
products: Pick<Product, 'id' | 'name' | 'prices'>[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Order {}
|
||||||
|
|
||||||
interface Customer {
|
interface Customer {
|
||||||
id: string
|
id: string
|
||||||
name: 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