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

25 lines
505 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 {
"app-critical-error": CustomEvent<{ message: string }>;
"app-login-required": CustomEvent;
"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;
}