Skip to content

Commit 4271b6c

Browse files
committed
Frontend: Added Reply to types, included in Review
1 parent 571405b commit 4271b6c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/src/lib/types/types.ts

+8
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,19 @@ export interface Product {
6565
tiers: Tier[];
6666
}
6767

68+
interface Reply {
69+
id:number;
70+
user: User;
71+
replyText: string;
72+
createdAt: Date;
73+
}
74+
6875
export interface Review {
6976
id: number;
7077
user: User;
7178
product: Product;
7279
reviewText: string;
80+
replies: Reply[];
7381
starRating: number;
7482
createdAt: Date;
7583
}

0 commit comments

Comments
 (0)