-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
82 lines (72 loc) · 1.24 KB
/
typings.d.ts
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
interface Product {
id: string;
slug: string;
title: string;
price: number;
rating: number;
description: string;
mainImage: string;
manufacturer: string;
categoryId: string;
category: {name: string}?;
inStock: number;
}
interface SingleProductPageProps {
params: {
productSlug: string;
};
}
type ProductInWishlist = {
id: string;
title: string;
price: number;
image: string;
slug: string;
stockAvailabillity: number;
};
interface OtherImages {
imageID: number;
productID: number;
image: string;
}
interface Category {
id: string;
name: string;
}
interface User {
id: string;
email: string;
password: string | null;
role: string;
}
interface Order {
id: string;
adress: string;
apartment: string;
company: string;
dateTime: string;
email: string;
lastname: string;
name: string;
phone: string;
postalCode: string;
status: "processing" | "canceled" | "delivered";
city: string;
country: string;
orderNotice: string?;
total: number;
}
interface SingleProductBtnProps {
product: Product;
quantityCount: number;
}
interface Category {
id: string;
name: string;
}
interface WishListItem {
id: string;
userId: string;
productId: string;
product: Product;
}