Config.d.ts
1021 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
import Service from '../Service/Service';
interface IChanged {
key: string;
pluginId: string;
}
interface IOpts {
cwd: string;
service: Service;
localConfig?: boolean;
configFiles?: string[];
}
export default class Config {
cwd: string;
service: Service;
config?: object;
localConfig?: boolean;
configFile?: string | null;
configFiles: string[];
constructor(opts: IOpts);
getDefaultConfig(): Promise<{}>;
getConfig({ defaultConfig }: {
defaultConfig: object;
}): {};
getUserConfig(): {};
addAffix(file: string, affix: string): string;
requireConfigs(configFiles: string[]): any[];
mergeConfig(...configs: object[]): {};
getConfigFile(): string | null;
getWatchFilesAndDirectories(): string[];
watch(opts: {
userConfig: object;
onChange: (args: {
userConfig: any;
pluginChanged: IChanged[];
valueChanged: IChanged[];
}) => void;
}): () => void;
}
export {};