fix: add type parameters to Apollo mutate calls
https://claude.ai/code/session_01EcJHCeJy44AKw2rafgQcnu
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user