-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathindex.d.ts
More file actions
77 lines (73 loc) · 1.44 KB
/
index.d.ts
File metadata and controls
77 lines (73 loc) · 1.44 KB
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
declare namespace timer {
type RequiredLocale = 'en'
type OptionalLocale =
| 'zh_CN'
| 'ja'
// @since 0.9.0
| 'zh_TW'
// @since 1.8.2
| 'pt_PT'
// @since 2.1.0
| 'uk'
// @since 2.1.4
| 'es'
// @since 2.2.7
| 'de'
// @since 2.3.6
| 'fr'
// @since 2.4.6
| 'ru'
// @since 2.5.0
| 'ar'
// @since 3.7.3
| 'tr'
// @since 3.7.3
| 'pl'
/**
* @since 0.8.0
*/
type Locale = RequiredLocale | OptionalLocale
/**
* Translating locales
*
* @since 1.4.0
*/
type TranslatingLocale =
| 'ko'
| 'pl'
| 'it'
| 'sv'
| 'fi'
| 'da'
| 'hr'
| 'id'
| 'cs'
| 'ro'
| 'nl'
| 'vi'
| 'sk'
| 'mn'
| 'hi'
type ExtensionMetaFlag = "rateOpen"
type ExtensionMeta = {
installTime?: number
appCounter?: { [routePath: string]: number }
popupCounter?: {
_total?: number
}
/**
* The id of this client
*
* @since 1.2.0
*/
cid?: string
backup?: {
[key in timer.backup.Type]?: {
ts: number
msg?: string
}
}
// Flags
flag?: Partial<Record<ExtensionMetaFlag, boolean>>
}
}