Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(type): broadcastAdapter is defined as an interface

tiran1337de2dec8416c
diff --git a/apps/api/src/ws/broadcast-adapter.ts b/apps/api/src/ws/broadcast-adapter.ts
index 566743033..6e309d4d4 100644
--- a/apps/api/src/ws/broadcast-adapter.ts
+++ b/apps/api/src/ws/broadcast-adapter.ts
@@ -12,7 +12,7 @@ export type BroadcastMessage = {
excludeInitiatorId?: string;
};
-export interface BroadcastAdapter {
+export type BroadcastAdapter = {
/** Publish a message to all instances watching this project */
publish(msg: BroadcastMessage): Promise<void>;
@@ -21,4 +21,4 @@ export interface BroadcastAdapter {
/** Cleanup on shutdown */
shutdown(): Promise<void>;
-}
+};