Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

companion: type the fake relay's admitted() for the server typecheck

milind-soni3078af5838b4
diff --git a/companion/test/e2e/fake-relay.ts b/companion/test/e2e/fake-relay.ts
index 77ec75013a..d08f25e9cf 100644
--- a/companion/test/e2e/fake-relay.ts
+++ b/companion/test/e2e/fake-relay.ts
@@ -171,7 +171,7 @@ export async function startFakeRelay(options: FakeRelayOptions): Promise<FakeRel
url: `ws://127.0.0.1:${port}`,
hosts,
closes,
- admitted: (hid) => hosts.get(hid)?.set ?? new Set(),
+ admitted: (hid: string) => hosts.get(hid)?.set ?? new Set<string>(),
restart() {
for (const host of hosts.values()) host.control.send(JSON.stringify({ t: "restarting", reconnectInMs: 0, tryForMs: 200 }));
},