-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtypes.js
46 lines (40 loc) · 803 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
//@flow
export type Options = {
cache: string,
player: ?string,
feed: string,
lang: string,
port: number,
'peer-port': number,
log: (...params: any[]) => void,
offline: boolean,
browse: boolean,
movie: boolean,
title: ?string,
}
export type NamedStat = {
name: string,
size: number,
isDirectory: () => boolean,
mtime: Date,
}
export type DirStat = {
files: NamedStat[],
count: number,
size: number,
hsize: string,
}
export type OrigSubtitles = {
SubLanguageID: string,
SubAddDate: string,
SubFileName: string,
SubSize: number,
SubDownloadLink: string,
MovieReleaseName: string,
}
export type Show = {
url: string,
title: string,
subtitles: ?string,
}
export type DateUnit = 'year'|'month'|'week'|'day'|'hour'|'minute'|'second'|'millisecond'