Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 94a24aa

Browse files
committed
add: types for object
1 parent 61a8ebb commit 94a24aa

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

src/features/gifts/types.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
export interface GiftIdea {
2+
id: string;
3+
title: string;
4+
description?: string;
5+
image: string;
6+
price: number;
7+
recipient: string;
8+
selectedDate: string;
9+
createdAt?: string;
10+
}
11+
12+
export interface GiftState {
13+
gifts: GiftIdea[];
14+
loading: boolean;
15+
error: string | null;
16+
}
17+
18+
export interface CreateGiftDTO {
19+
title: string;
20+
description?: string;
21+
image: string;
22+
price: number;
23+
recipient: string;
24+
selectedDate: string;
25+
}

src/features/recipients/types.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export interface Recipient {
2+
id: string;
3+
image: string;
4+
name: string;
5+
description?: string;
6+
budget: number;
7+
spent: number;
8+
createdAt?: string;
9+
}
10+
11+
export interface RecipientState {
12+
recipients: Recipient[];
13+
loading: boolean;
14+
error: string | null;
15+
}
16+
17+
export interface CreateRecipientDTO {
18+
image: string;
19+
name: string;
20+
description?: string;
21+
budget: number;
22+
spent: number;
23+
}

0 commit comments

Comments
 (0)