-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
46 lines (41 loc) · 820 Bytes
/
types.ts
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
export interface Invoice {
id: string;
createdAt: string;
paymentDue: string;
description: string;
paymentTerms: number;
clientName: string;
clientEmail: string;
status: ItemStatus;
senderAddress: {
street: string;
city: string;
postCode: string;
country: string;
};
clientAddress: {
street: string;
city: string;
postCode: string;
country: string;
};
items: Item[];
total: number;
}
export type Item = {
name: string;
quantity: number;
price: number;
total: number;
};
export type ScreenType = "phone" | "tablet" | "desktop";
export type FilterType = {
value: boolean;
onChange: () => void;
};
export type ItemStatus = "draft" | "pending" | "paid";
export type ToggleHandlers = {
on: () => void;
off: () => void;
toggle: () => void;
};