mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 20:43:33 +00:00
xo: Fix @typescript-eslint/consistent-type-definitions.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type {DndSettings} from "./dnd-util";
|
||||
import type {MenuProps, ServerConf} from "./types";
|
||||
|
||||
export interface MainMessage {
|
||||
export type MainMessage = {
|
||||
"clear-app-settings": () => void;
|
||||
"configure-spell-checker": () => void;
|
||||
"fetch-user-agent": () => string;
|
||||
@@ -22,15 +22,15 @@ export interface MainMessage {
|
||||
"update-badge": (messageCount: number) => void;
|
||||
"update-menu": (props: MenuProps) => void;
|
||||
"update-taskbar-icon": (data: string, text: string) => void;
|
||||
}
|
||||
};
|
||||
|
||||
export interface MainCall {
|
||||
export type MainCall = {
|
||||
"get-server-settings": (domain: string) => ServerConf;
|
||||
"is-online": (url: string) => boolean;
|
||||
"save-server-icon": (iconURL: string) => string;
|
||||
}
|
||||
};
|
||||
|
||||
export interface RendererMessage {
|
||||
export type RendererMessage = {
|
||||
back: () => void;
|
||||
"copy-zulip-url": () => void;
|
||||
destroytray: () => void;
|
||||
@@ -79,4 +79,4 @@ export interface RendererMessage {
|
||||
zoomActualSize: () => void;
|
||||
zoomIn: () => void;
|
||||
zoomOut: () => void;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user