TeaSpeak-Client/imports/shared-app/ui/frames/HostBannerDefinitions.d.ts

19 lines
480 B
TypeScript
Raw Normal View History

2021-02-20 12:55:36 -05:00
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;
};
}