You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/app/components/workflow/nodes/variable-assigner/utils.ts

17 lines
342 B
TypeScript

import type { Var } from '../../types'
import { VarType } from '../../types'
export const checkNodeValid = () => {
return true
}
export const filterVar = (varType: VarType) => {
return (v: Var) => {
if (varType === VarType.any)
return true
if (v.type === VarType.any)
return true
return v.type === varType
}
}