TeaSpeak-Client/imports/shared-app/ui/frames/HostBannerDefinitions.d.ts
2021-02-20 18:55:36 +01:00

19 lines
480 B
TypeScript

export declare type HostBannerInfoMode = "original" | "resize-ratio" | "resize";
export declare type HostBannerInfoSet = {
mode: HostBannerInfoMode;
linkUrl: string | undefined;
imageUrl: string;
updateInterval: number;
};
export declare type HostBannerInfo = {
status: "none";
} | ({
status: "set";
} & HostBannerInfoSet);
export interface HostBannerUiEvents {
query_host_banner: {};
notify_host_banner: {
banner: HostBannerInfo;
};
}