-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtype.ts
56 lines (52 loc) · 958 Bytes
/
type.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
type Dimensions = {
width: number;
height: number;
depth: number;
};
type Meta = {
createdAt: string;
updatedAt: string;
barcode: string;
qrCode: string;
};
type Review = {
reviewerName: string;
rating: number;
comment: string;
reviewerEmail: string;
};
export type Product = {
availabilityStatus: string;
brand: string;
category: string;
description: string;
dimensions: Dimensions;
discountPercentage: number;
id: number;
images: string[];
meta: Meta;
minimumOrderQuantity: number;
price: number;
rating: number;
returnPolicy: string;
reviews: Review[];
shippingInformation: string;
sku: string;
stock: number;
tags: string[];
thumbnail: string;
title: string;
warrantyInformation: string;
weight?: number;
quantity?: number | undefined;
};
export interface Session {
user: {
expires: any;
user: {
email: string;
image: string;
name: string;
};
};
}