21 lines
495 B
TypeScript
Raw Normal View History

import type { NodeDefault } from '../../types'
import type { IterationStartNodeType } from './types'
2025-04-24 16:29:58 +08:00
import { genNodeMetaData } from '@/app/components/workflow/utils'
import { BlockEnum } from '@/app/components/workflow/types'
2025-04-29 16:11:54 +08:00
const metaData = genNodeMetaData({
sort: -1,
type: BlockEnum.IterationStart,
})
const nodeDefault: NodeDefault<IterationStartNodeType> = {
2025-04-29 16:11:54 +08:00
metaData,
defaultValue: {},
checkValid() {
return {
isValid: true,
}
},
}
export default nodeDefault