-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathtypes.ts
More file actions
40 lines (36 loc) · 676 Bytes
/
types.ts
File metadata and controls
40 lines (36 loc) · 676 Bytes
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
// change or modify the types as your requirement
export type Product = {
id: number;
name: string;
category: string;
description: string;
aboutItem: string[];
price: number;
discount: number;
rating: number;
reviews: Review[];
brand?: string;
color?: string[];
stockItems: number;
images: string[];
};
export type Review = {
author: string;
image: string;
content: string;
rating:number
date: Date;
};
export type SearchParams = {
page: string;
category: string;
brand: string;
search: string;
min: string;
max: string;
color: string;
};
export type CartItem = Product & {
selectedColor: string;
quantity: number;
};