-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypings.d.ts
More file actions
62 lines (56 loc) · 1.05 KB
/
typings.d.ts
File metadata and controls
62 lines (56 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
export interface SanityDataType {
_created_at: string
_id: string
_rev: string
_type: string
_updated_at: string
}
export interface SanityImageType {
asset: {
_ref: string
_type: string
}
_key: string
_type: string
}
export interface BannerDataType extends SanityDataType {
buttonText: string
desc: string
discount: string
image: SanityImageType[]
largeText1: string
largeText2: string
midText: string
smallText: string
product: string
saleTime: string
}
export interface ProductDataType extends SanityDataType {
details: string
image: SanityImageType[]
name: string
price: number
slug: {
current: string
_type: string
}
}
export interface CartItem extends ProductDataType {
quantity: number
}
export interface CreateOrderDataType {
cartItems: CartItem[]
userEmail: string
total: number
telephone: string
address: string
city: string
zip: string
}
export interface FetchedOrderDataType {
_createdAt: string
_id: string
products: ProductDataType
status: string
total: number
}