Files
GMW/services/frontend/src/lib/ws-hook.ts
T

10 lines
216 B
TypeScript
Raw Normal View History

import type { WsEventType } from "./ws/types";
export type WsHook = {
on: <E extends WsEventType>(
eventType: E,
handler: (data: unknown) => void,
) => () => void;
sendText: (text: string) => void;
};