added new types

This commit is contained in:
Mamalizz
2025-01-26 03:00:18 +03:30
parent 90cb112117
commit 16867f6e1d
+43 -29
View File
@@ -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;
};
}