From 71ac73a8893b36bb28e7a3cb22e358ab5a2ce040 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 27 Jul 2026 18:35:18 +0800 Subject: [PATCH] fix: useTitleAI mutation return type void -> TitleItem --- apps/web/src/pages/titles/hooks/useTitleAI.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/pages/titles/hooks/useTitleAI.ts b/apps/web/src/pages/titles/hooks/useTitleAI.ts index ed0b19dad..3544fd735 100644 --- a/apps/web/src/pages/titles/hooks/useTitleAI.ts +++ b/apps/web/src/pages/titles/hooks/useTitleAI.ts @@ -1,11 +1,12 @@ import { useState, useCallback } from "react" import { message } from "antd" import type { UseMutationResult } from "@tanstack/react-query" +import type { TitleItem } from "@/api/titles" import { copyToClipboard } from "../utils/titleLibrary" import { AI_GENERATE_DELAY } from "../constants/titleLibrary" interface UseTitleAIProps { - createMutation: UseMutationResult + createMutation: UseMutationResult } const generateMockTitles = (keyword: string): string[] => [