Commit bd501197 authored by Hugo "ThePooN" Denizart's avatar Hugo "ThePooN" Denizart
Browse files

🐛 Fix broken typings since dependencies upgrade

parent 49231095
/* tslint:disable */
/* eslint-disable */
interface Config {
obsInstances: ObsInstance[];
server: ObsInstance;
stopTimeout: number;
declare module "node-config-ts" {
interface IConfig {
obsInstances: ObsInstance[];
server: ObsInstance;
stopTimeout: number;
}
interface ObsInstance {
address: string;
port: number;
password: string;
}
export const config: Config;
export type Config = IConfig
}
interface ObsInstance {
address: string;
port: number;
password: string;
}
\ No newline at end of file
......@@ -73,7 +73,7 @@ export class App {
obs.on("ConnectionClosed", () => {
App.logger.warn(`OBS Connection #${instanceId} closed!`);
this.obsInstances[instanceId] = null;
delete this.obsInstances[instanceId];
setTimeout(() => this.handleObsInstance(instanceId, false), 5000);
});
}
......
......@@ -3,7 +3,7 @@ import { App } from "../App";
import { Logger } from "osufrlive-common";
const SwitchScenesLogger = new Logger("SwitchScenes");
export function SwitchScenes(socket: OBSWebSocket, app: App, { "scene-name": sceneName, sources }: { "scene-name": string; sources: OBSWebSocket.Source[] }): void {
export function SwitchScenes(socket: OBSWebSocket, app: App, { "scene-name": sceneName, sources }: { "scene-name": string; sources: OBSWebSocket.SceneItem[] }): void {
if(app.currentScene !== sceneName) {
app.currentScene = sceneName;
app.broadcastEvent("SwitchScenes", { "scene-name": sceneName, sources });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment