MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / makeFlowEdge

Function makeFlowEdge

packages/agentflow/src/__test_utils__/factories.ts:32–38  ·  view source on GitHub ↗
(source: string, target: string, overrides?: Partial<FlowEdge>)

Source from the content-addressed store, hash-verified

30 * makeFlowEdge('a', 'b', { selected: true, animated: true })
31 */
32export const makeFlowEdge = (source: string, target: string, overrides?: Partial<FlowEdge>): FlowEdge => ({
33 id: `${source}-${target}`,
34 source,
35 target,
36 type: 'default',
37 ...overrides
38})
39
40/**
41 * Create a {@link NodeData} descriptor (the `data` payload of a node).

Callers 2

makeEdgeFunction · 0.90

Calls

no outgoing calls

Tested by 1

makeEdgeFunction · 0.72