xo: Fix @typescript-eslint/consistent-type-definitions.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-01-03 14:46:10 -08:00
parent 1aa4ade3c0
commit cd023ec5ab
23 changed files with 54 additions and 54 deletions

View File

@@ -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;
}
};