added new types
This commit is contained in:
Vendored
+43
-29
@@ -9,38 +9,52 @@ declare global {
|
||||
};
|
||||
|
||||
type Chat = {
|
||||
id: number,
|
||||
sender: "ai" | "user",
|
||||
content: string
|
||||
}
|
||||
id: number;
|
||||
sender: "ai" | "user";
|
||||
content: string;
|
||||
};
|
||||
|
||||
type Product = {
|
||||
"id": number,
|
||||
"price": number,
|
||||
"name": string,
|
||||
"description": string,
|
||||
"currency": string,
|
||||
"image": string,
|
||||
"rating": number,
|
||||
"view": number,
|
||||
"sell": number,
|
||||
"in_stock": number,
|
||||
"discount": number,
|
||||
"slug": string,
|
||||
"meta_description": string | null,
|
||||
"meta_keywords": null,
|
||||
"meta_rating": number | null
|
||||
}
|
||||
id: number;
|
||||
price: number;
|
||||
name: string;
|
||||
description: string;
|
||||
currency: string;
|
||||
image: string;
|
||||
rating: number;
|
||||
view: number;
|
||||
sell: number;
|
||||
in_stock: number;
|
||||
discount: number;
|
||||
slug: string;
|
||||
meta_description: string | null;
|
||||
meta_keywords: null;
|
||||
meta_rating: number | null;
|
||||
};
|
||||
|
||||
type Category = {
|
||||
"id": number,
|
||||
"name": string,
|
||||
"slug": string,
|
||||
"icon": string,
|
||||
"meta_title": string,
|
||||
"meta_description": string,
|
||||
"parent": number,
|
||||
"children": "string"
|
||||
}
|
||||
id: number;
|
||||
name: string;
|
||||
slug: string;
|
||||
icon: string;
|
||||
meta_title: string;
|
||||
meta_description: string;
|
||||
parent: number;
|
||||
children: "string";
|
||||
};
|
||||
|
||||
type Address = {
|
||||
id: number;
|
||||
province: string;
|
||||
city: string;
|
||||
postal_code: string;
|
||||
full_address: string;
|
||||
};
|
||||
|
||||
type DeliveryMethod = {
|
||||
type: string;
|
||||
date: string;
|
||||
hour: string;
|
||||
price: string;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user