feat: node add default value

This commit is contained in:
Joel
2024-03-05 14:23:47 +08:00
parent f1d44a4c87
commit 7ec29bbee7
17 changed files with 99 additions and 32 deletions

View File

@ -1,8 +1,14 @@
import type { NodeDefault } from '../../types'
import type { EndNodeType } from './types'
import { type EndNodeType, EndVarType } from './types'
const nodeDefault: NodeDefault<EndNodeType> = {
defaultValue: {},
defaultValue: {
outputs: {
type: EndVarType.none,
plain_text_selector: [],
structured_variables: [],
},
},
getAvailablePrevNodes() {
return []
},