-
Notifications
You must be signed in to change notification settings - Fork 0
/
setting.d.ts
33 lines (28 loc) · 862 Bytes
/
setting.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
declare class Setting {
/**
* DO NOT USE - not implemented
*/
constructor();
/**
* The name of the setting
*/
readonly name: string;
readonly displayName: string;
readonly description: string;
toString(): string;
/**
* Gets the value of the setting. Could be null.
*/
getValue(): any;
/**
* Sets the setting value.
* @param value The value to set. Must be of type corresponding to the type of the setting.
*/
setValue(value: any): void;
/**
* Set that this setting will only show when another setting is on or off.
* @param settingName The setting that this setting will depend on (internal name).
* @param value The value the other setting needs to be for this setting to show
*/
setCondition(settingName: string, value?: boolean): void;
}