28 lines
No EOL
569 B
TypeScript
28 lines
No EOL
569 B
TypeScript
export 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: {}
|
|
} |