-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (45 loc) · 915 Bytes
/
Copy pathtypes.ts
File metadata and controls
50 lines (45 loc) · 915 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
46
47
48
49
50
export interface Book {
id: string;
title: string;
author: string;
isbn: string;
cover: string;
category: string;
status: 'Available' | 'Out of stock' | 'Repairing';
available: number;
borrowed: number;
}
export interface Member {
id: string;
name: string;
email: string;
joinDate: string;
borrowedCount: number;
status: 'Active' | 'Locked';
avatar: string;
}
export interface Event {
id: string;
name: string;
type: 'Workshop' | 'Reading';
date: string;
location: string;
registrations: string;
status: 'Upcoming' | 'Ongoing' | 'Finished';
}
export interface Branch {
id: string;
name: string;
address: string;
bookCount: number;
leadStaff: string;
status: 'Open' | 'Closed' | 'Maintenance';
}
export interface Author {
id: string;
name: string;
dob: string;
dod?: string; // Date of death optional
biography: string;
bookCount: number;
}