feat: add default and utils

This commit is contained in:
Joel
2024-02-27 10:43:11 +08:00
parent 4d4d3bb965
commit 925964ac28
23 changed files with 210 additions and 1 deletions

View File

@ -0,0 +1,14 @@
import type { NodeDefault } from '../../types'
import type { CodeNodeType } from './types'
const nodeDefault: NodeDefault<CodeNodeType> = {
defaultValue: {},
getAvailablePrevNodes() {
return []
},
getAvailableNextNodes() {
return []
},
}
export default nodeDefault

View File

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