Files
zulip-desktop/app/common/types.ts
Anders Kaseorg adcacd7d45 Tighten tab role type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-07-21 15:46:40 -07:00

28 lines
435 B
TypeScript

export interface MenuProps {
tabs: TabData[];
activeTabIndex?: number;
enableMenu?: boolean;
}
export type NavItem =
| "General"
| "Network"
| "AddServer"
| "Organizations"
| "Shortcuts";
export interface ServerConf {
url: string;
alias: string;
icon: string;
}
export type TabRole = "server" | "function";
export interface TabData {
role: TabRole;
name: string;
index: number;
webviewName: string;
}