feat: add default values and utils and fix ts

This commit is contained in:
Joel
2024-02-27 10:34:13 +08:00
parent 3d526b3a87
commit 4d4d3bb965
6 changed files with 31 additions and 6 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
import type { VariableAssignerNodeType } from './types'
export const checkNodeValid = (node: VariableAssignerNodeType) => {
return true
}