41 lines
911 B
TypeScript
41 lines
911 B
TypeScript
import { RegistryValueTypeNames } from "tc-shared/settings";
|
|
export interface Setting {
|
|
key: string;
|
|
type: RegistryValueTypeNames;
|
|
description: string | undefined;
|
|
defaultValue: any | undefined;
|
|
}
|
|
export interface ModalGlobalSettingsEditorEvents {
|
|
action_select_setting: {
|
|
setting: string;
|
|
};
|
|
action_set_filter: {
|
|
filter: string;
|
|
};
|
|
action_set_value: {
|
|
setting: string;
|
|
value: string;
|
|
};
|
|
query_settings: {};
|
|
query_setting: {
|
|
setting: string;
|
|
};
|
|
notify_settings: {
|
|
settings: Setting[];
|
|
};
|
|
notify_setting: {
|
|
setting: string;
|
|
status: "success" | "not-found";
|
|
info?: Setting;
|
|
value?: string;
|
|
};
|
|
notify_selected_setting: {
|
|
setting: string;
|
|
};
|
|
notify_setting_value: {
|
|
setting: string;
|
|
value: string;
|
|
};
|
|
notify_destroy: {};
|
|
}
|