mirror of
https://github.com/langgenius/dify.git
synced 2025-07-15 21:24:23 +00:00
25 lines
648 B
TypeScript
25 lines
648 B
TypeScript
import type { NodeDefault } from '../../types'
|
|
import type {
|
|
SimpleNodeType,
|
|
} from '@/app/components/workflow/simple-node/types'
|
|
import { genNodeMetaData } from '@/app/components/workflow/utils'
|
|
import { BlockEnum } from '@/app/components/workflow/types'
|
|
import { BlockClassificationEnum } from '@/app/components/workflow/block-selector/types'
|
|
|
|
const metaData = genNodeMetaData({
|
|
classification: BlockClassificationEnum.Logic,
|
|
sort: 2,
|
|
type: BlockEnum.LoopEnd,
|
|
})
|
|
const nodeDefault: NodeDefault<SimpleNodeType> = {
|
|
metaData,
|
|
defaultValue: {},
|
|
checkValid() {
|
|
return {
|
|
isValid: true,
|
|
}
|
|
},
|
|
}
|
|
|
|
export default nodeDefault
|