MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / MessageState

Interface MessageState

src/store/message.ts:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { Id, Message } from "@/types";
4
5interface MessageState {
6 messageList: Message[];
7 getState: () => MessageState;
8 addMessage: (message: Message) => void;
9 updateMessage: (messageId: Id, message: Partial<Message>) => void;
10 updateStatement: (messageId: Id, originalStatement: string, replacementStatement: string) => void;
11 clearMessage: (filter: (message: Message) => boolean) => void;
12}
13
14export const useMessageStore = create<MessageState>()(
15 persist(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected