-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-app-env.d.ts
87 lines (75 loc) · 1.29 KB
/
react-app-env.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/// <reference types="react-scripts" />
declare module '*.mp4' {
const src: string;
export default src;
}
interface ErrorBoundaryProps {
children: ReactNode
}
interface ErrorBoundaryState {
error: Error | null
errorInfo: ErrorInfo | null
}
interface User {
_createdAt: Date;
_id: string;
_rev: string;
_type: string;
_updatedAt: Date;
image: string;
userName: string;
}
interface Save {
_key: string,
postedBy: {
_id: string,
userName: string,
image: string
},
}
interface Comment {
postedBy: {
_id: string,
userName: string,
image: string
},
comment: string
}
interface Pin {
_id: string
destination: string
title: string
image: string
category: string
about: string
postedBy: {
_id: string
image: string,
userName: string
}
_id: string
image: string
userName: string
save?: Save[],
comments: Comment[]
}
interface SidebarProps {
user: User | null;
closeToggle: React.Dispatch<React.SetStateAction<boolean>>;
}
interface NavbarProps {
user: User | null;
setQuery: React.Dispatch<React.SetStateAction<string>>;
query: string
}
interface MobileNavbarProps {
user: User | null;
setToggleSidebar: React.Dispatch<React.SetStateAction<boolean>>;
toggleSidebar: boolean
}
interface SpinnerProps {
msg?: string;
}
interface MasonryProps {
pins: Pin[]
}