-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.js
56 lines (50 loc) · 944 Bytes
/
types.js
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
export type LocationType = {
altitude: number,
heading: number,
latitude: number,
longitude: number,
speed: number,
}
export type ImageType = {
image: string,
location: LocationType,
timestamp: number,
uri: string,
height: number,
width: number,
}
export type PostType = 'trending' | 'latest' | 'hot'
export type PostOptions = {
tag: string,
startAtPermaLink: string,
limit: number,
}
export type Vote = {
voter: string,
time: Date,
}
export type Post = {
title: string,
author: string,
id: number,
metadata: Object,
votes: Array<Vote>,
url: string,
imageUrl: string,
created: Date,
last_update: Date,
active: Date,
category: string,
permalink: string,
location: string,
}
export type SteemPersona = {
accessToken: String,
accessTokenExpirationDate: String,
additionalParameter: {
username: String,
},
idToken: String,
refreshToken: String,
tokenType: String,
}