Type Alias SettingsPluginConfig
SettingsPluginConfig: {
persist?: boolean;
storage?: {
get(
settingId: string,
): string | boolean | Promise<boolean> | Promise<string>;
set(settingId: string, value: string | boolean): void;
};
}
Type declaration
Optional
persist?: boolean
Optional
storage?: {
get(
settingId: string,
): string | boolean | Promise<boolean> | Promise<string>;
set(settingId: string, value: string | boolean): void;
}
get:function
- get(settingId: string): string | boolean | Promise<boolean> | Promise<string>
Returns string | boolean | Promise<boolean> | Promise<string>
set:function
- set(settingId: string, value: string | boolean): void
Parameters
- settingId: string
- value: string | boolean
Returns void
should the settings be saved accross sessions