mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
feat: add default values and utils and fix ts
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import type { NodeDefault } from '../../types'
|
||||
import type { VariableAssignerNodeType } from './types'
|
||||
|
||||
const nodeDefault: NodeDefault<VariableAssignerNodeType> = {
|
||||
defaultValue: {},
|
||||
getAvailablePrevNodes() {
|
||||
return []
|
||||
},
|
||||
getAvailableNextNodes() {
|
||||
return []
|
||||
},
|
||||
}
|
||||
|
||||
export default nodeDefault
|
||||
@ -0,0 +1,5 @@
|
||||
import type { VariableAssignerNodeType } from './types'
|
||||
|
||||
export const checkNodeValid = (node: VariableAssignerNodeType) => {
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user