forked from saltycrane/kage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.js
More file actions
45 lines (38 loc) · 764 Bytes
/
Copy pathtypes.js
File metadata and controls
45 lines (38 loc) · 764 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
/* @flow */
export type ApiStatus = {|
error: ?string,
loading: boolean,
success: boolean,
|};
export type Auth = {|
token: ?string,
uid: ?string,
|};
export type CurrentUser = {|
displayName: string,
email: string,
emailVerified: boolean,
isAnonymous: boolean,
photoURL: string,
providerId: ?string,
providerData: Array<*>,
token: string,
uid: string,
|} | null;
export type Task = {|
completed?: boolean,
completedAt?: number,
createdAt: number,
id: string,
isDeleted?: boolean,
tags?: Array<string>,
text: string,
|};
export type Place = Object;
export type SelectedModal = null | "reauth" | "signin" | "signup";
export type User = {|
createdAt: number,
email: string,
id: string,
username?: string,
|};