bazarr/frontend/src/types/window.d.ts

25 lines
530 B
TypeScript
Raw Normal View History

interface SocketIODebugger {
dump: () => void;
emit: (event: SocketIO.Event) => void;
}
2021-03-25 14:22:43 +00:00
declare global {
interface Window {
Bazarr: BazarrServer;
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;
apiKey?: string;
2021-03-25 14:22:43 +00:00
canUpdate: boolean;
hasUpdate: boolean;
}