mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
refactor: Improve type safety in context generate modal hooks
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user