Files
Signal-Desktop/ts/types/menu.ts
adel-signal 8a9ab8c13f Add calling tools to visualize ringrtc stats
Co-authored-by: ayumi-signal <ayumi@signal.org>
2024-05-22 17:28:01 -07:00

38 lines
1.0 KiB
TypeScript

// Copyright 2017 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { MenuItemConstructorOptions } from 'electron';
export type MenuListType = Array<MenuItemConstructorOptions>;
export type MenuOptionsType = Readonly<{
development: boolean;
devTools: boolean;
includeSetup: boolean;
isProduction: boolean;
platform: string;
}>;
export type MenuActionsType = Readonly<{
forceUpdate: () => unknown;
openArtCreator: () => unknown;
openContactUs: () => unknown;
openForums: () => unknown;
openJoinTheBeta: () => unknown;
openReleaseNotes: () => unknown;
openSupportPage: () => unknown;
setupAsNewDevice: () => unknown;
setupAsStandalone: () => unknown;
showAbout: () => unknown;
showDebugLog: () => unknown;
showCallingDevTools: () => unknown;
showKeyboardShortcuts: () => unknown;
showSettings: () => unknown;
showWindow: () => unknown;
zoomIn: () => unknown;
zoomOut: () => unknown;
zoomReset: () => unknown;
}>;
export type MenuActionType = keyof MenuActionsType;