refactor: Improve type safety in context generate modal hooks

This commit is contained in:
zhsama
2026-01-30 21:26:14 +08:00
parent 0265cc0403
commit 617b64bb93
2 changed files with 7 additions and 5 deletions

View File

@ -74,7 +74,7 @@ const resolveVarSchema = (variable: Var): Record<string, unknown> | undefined =>
const toAvailableVarsPayload = (
availableVars: NodeOutPutVar[],
nodeMap: Map<string, { data?: { type?: string } }>,
nodeMap: Map<string, Node>,
): ContextGenerateAvailableVar[] => {
const results: ContextGenerateAvailableVar[] = []
availableVars.forEach((nodeVar) => {