refactor: enhance message streaming and UI components; add SWR provider
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user