-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterfaces.d.ts
45 lines (44 loc) · 895 Bytes
/
interfaces.d.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
export interface MakeOrderData {
userId?: number;
promo: string;
comment: string;
address: string;
deliveryDate: string;
products: object;
date?: string;
}
export interface tsBasketApi {
action: actionTypes;
params?: { count?: number; productId?: number; products?: tsBasket };
// params?: actionTypesparams;
}
export interface LoginData {
log: string;
pas: string;
save?: boolean;
name?: string;
phone?: string;
// isSignUp?: false;
mode?: "signIn" | "signUp" | "forgot";
}
export interface GetDataActions {
orders?: {
orderId?: number;
userId?: number;
};
news?: boolean;
userupdate?: {
userData: {};
};
stocks?: boolean;
catalog?: boolean;
}
export interface tsBasket {
[id: number]: tsBasketItem;
}
export interface tsBasketItem {
count: number;
// afasf: string;
}
type actionTypes = "setProduct" | "clear" | "setBasket";
// export interface MakeOrderData