docs(useMermaidFixTool): improve type comments for Input interface

Update JSDoc comments to be more descriptive and follow standard conventions
This commit is contained in:
icarus 2025-10-22 07:43:12 +08:00
parent eabbe593dd
commit 552694df11

View File

@ -41,12 +41,15 @@ const ResultSchema = z.union([
})
])
/**
* Input shape for the Mermaid fix prompt.
*/
type Input = {
// mermaid 代码
/** Mermaid diagram code to be fixed */
mermaid: string
// 错误信息
/** Error message returned by the renderer */
error: string
// 用户语言代码, 如 zh-cn, en-us
/** Users language code (e.g. zh-cn, en-us) */
lang: string
}