TeaSpeak-Client/imports/shared-app/ui/modal/bookmarks-add-server/Definitions.d.ts

22 lines
573 B
TypeScript

export declare type TargetBookmarkInfo = {
type: "success";
handlerId: string;
serverName: string;
serverUniqueId: string;
currentChannelId: number;
currentChannelName: string;
} | {
type: "not-connected" | "loading";
};
export interface ModalBookmarksAddServerVariables {
readonly serverInfo: TargetBookmarkInfo;
bookmarkName: string;
bookmarkNameValid: boolean;
saveCurrentChannel: boolean;
}
export interface ModalBookmarksAddServerEvents {
action_add_bookmark: {};
action_cancel: {};
notify_bookmark_added: {};
}