optimising and making it better
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user