-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
45 lines (38 loc) · 746 Bytes
/
types.ts
File metadata and controls
45 lines (38 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// For API data
interface Image {
url:string
}
export interface MenuItem {
title:string,
price:string,
description:string,
category:string,
image:Image
}
// for database rows
export interface MenuItemRow {
id: number;
title:string,
price:string,
description:string,
category:string
image:string
}
// For section list display
export interface MenuItemDisplay {
title:string,
price:string,
category:string,
image:string,
description:string,
key?:string
}
// Define UserData type with readonly properties for safety
export interface UserData {
firstName: string;
lastName: string;
email: string;
phone?: string;
password?: string;
avatar?: string;
};