Satisfy ESLint
[GitHub/WoltLab/WCF.git] / ts / WoltLabSuite / Core / Ui / Message / InlineEditor / Data.ts
1 /**
2 * @woltlabExcludeBundle all
3 */
4
5 import { ResponseData } from "../../../Ajax/Data";
6
7 export interface MessageInlineEditorOptions {
8 canEditInline: boolean;
9
10 className: string;
11 containerId: string;
12 dropdownIdentifier: string;
13 editorPrefix: string;
14
15 messageSelector: string;
16
17 // This is the legacy jQuery based class.
18 quoteManager: any;
19 }
20
21 export interface ItemData {
22 // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
23 item: "divider" | "editItem" | string;
24 label?: string;
25 }
26
27 export interface ElementVisibility {
28 [key: string]: boolean;
29 }
30
31 export interface AjaxResponseEditor extends ResponseData {
32 returnValues: {
33 template: string;
34 };
35 }
36
37 export interface AjaxResponseMessage extends ResponseData {
38 returnValues: {
39 attachmentList?: string;
40 message: string;
41 poll?: string;
42 };
43 }