2021-05-08 14:25:29 +00:00
|
|
|
interface SocketIODebugger {
|
|
|
|
dump: () => void;
|
|
|
|
emit: (event: SocketIO.Event) => void;
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:22:43 +00:00
|
|
|
declare global {
|
|
|
|
interface Window {
|
|
|
|
Bazarr: BazarrServer;
|
2022-08-21 04:04:21 +00:00
|
|
|
socketIO: SocketIODebugger;
|
2021-03-25 14:22:43 +00:00
|
|
|
}
|
2022-05-31 15:49:04 +00:00
|
|
|
|
|
|
|
interface WindowEventMap {
|
2022-08-23 15:13:46 +00:00
|
|
|
"app-auth-changed": CustomEvent<{ authenticated: boolean }>;
|
2022-05-31 15:49:04 +00:00
|
|
|
"app-critical-error": CustomEvent<{ message: string }>;
|
|
|
|
"app-online-status": CustomEvent<{ online: boolean }>;
|
|
|
|
}
|
2021-03-25 14:22:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface BazarrServer {
|
|
|
|
baseUrl: string;
|
2021-04-21 14:29:25 +00:00
|
|
|
apiKey?: string;
|
2021-03-25 14:22:43 +00:00
|
|
|
canUpdate: boolean;
|
|
|
|
hasUpdate: boolean;
|
|
|
|
}
|