fix: add type parameters to Apollo mutate calls

https://claude.ai/code/session_01EcJHCeJy44AKw2rafgQcnu
This commit is contained in:
Claude
2026-04-02 06:15:03 +00:00
parent ac99ce5c68
commit 326fa38515
2 changed files with 10 additions and 2 deletions
@@ -122,7 +122,13 @@ export const useAgentChat = (
setAgentChatUploadedFiles([]);
try {
const { data } = await apolloClient.mutate({
const { data } = await apolloClient.mutate<{
sendChatMessage: {
messageId: string;
queued: boolean;
streamId?: string;
};
}>({
mutation: SEND_CHAT_MESSAGE,
variables: {
threadId,
@@ -10,7 +10,9 @@ export const useDeleteQueuedMessage = () => {
const deleteQueuedMessage = useCallback(
async (messageId: string) => {
const { data } = await apolloClient.mutate({
const { data } = await apolloClient.mutate<{
deleteQueuedChatMessage: boolean;
}>({
mutation: DELETE_QUEUED_CHAT_MESSAGE,
variables: { messageId },
});