-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
53 lines (45 loc) · 1016 Bytes
/
index.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
type Inlang = {
sourceLanguageTag?: string
restLanguageTags?: string[]
messagesFileName?: string
messagesPath?: string
messagesFilePattern?: string
}
type HostConfig = {
i118n: Inlang
};
type PluginMessageFormat = {
pathPattern: string;
};
type InlangSettings = {
$schema: string
sourceLanguageTag: string
languageTags: string[]
modules: string[]
"plugin.inlang.messageFormat": PluginMessageFormat
}
type WriteJson = (pth: string, o: object) => void
type ConfigOpts = {
root: string
sourceRoot?: string
inlangDir?: string
settingsFileName?: string,
config?: string
}
type PartialHostConfig = Partial<HostConfig>
type Config = {
root: string
i118n: Inlang
inlangSettings?: InlangSettings
srcRoot: string
messagesPathPattern: string
installedLangs: string[]
inlangSettingsPath: string,
}
type Package = {
name: string,
version: string,
description: string,
author?: string
repository?: string
}