optimising and making it better

This commit is contained in:
sdarbinyan
2026-02-26 21:54:21 +04:00
parent 7a00a8f1e3
commit 10b4974719
58 changed files with 318 additions and 1804 deletions

View File

@@ -5,7 +5,7 @@ export interface Photo {
type?: string;
}
export interface Callback {
export interface Review {
rating?: number;
content?: string;
userID?: string;
@@ -13,6 +13,9 @@ export interface Callback {
timestamp?: string;
}
/** @deprecated Use {@link Review} instead */
export type Callback = Review;
export interface Question {
question: string;
answer: string;
@@ -31,10 +34,9 @@ export interface Item {
discount: number;
remainings?: string;
rating: number;
callbacks: Callback[] | null;
callbacks: Review[] | null;
questions: Question[] | null;
partnerID?: string;
quantity?: number; // For cart items
}
export interface CartItem extends Item {