TeaSpeak-Client/imports/shared-app/ui/modal/global-settings-editor/Definitions.d.ts
2021-02-20 18:55:36 +01:00

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: {};
}