Skip to content

Commit 18140a6

Browse files
Add user types
1 parent 79f8c7d commit 18140a6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

types/user.ts

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export interface UserProfile {
2+
id: string;
3+
name: string;
4+
email: string;
5+
avatar?: string;
6+
bio?: string;
7+
role: 'user' | 'admin';
8+
preferences: UserPreferences;
9+
}
10+
11+
export interface UserPreferences {
12+
theme: 'light' | 'dark' | 'system';
13+
emojiStyle: 'native' | 'twemoji';
14+
notifications: boolean;
15+
}
16+
17+
export type UserUpdatePayload = Partial<Omit<UserProfile, 'id'>>;

0 commit comments

Comments
 (0)