refactor: enhance message streaming and UI components; add SWR provider

This commit is contained in:
asepharyana
2026-08-26 16:51:46 +07:00
parent 37d15456dc
commit b640079cb6
7 changed files with 110 additions and 113 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import type { WsEventType } from "./ws/types";
import type { WsEventType, WsStatus } from "./ws/types";
export type WsHook = {
status?: WsStatus;
on: <E extends WsEventType>(
eventType: E,
handler: (data: unknown) => void,