Skip to Content
Svelte Flow 2 is out! Read the announcement →
ReferenceTypes

BuiltInEdge

Source on GitHub 

The BuiltInEdge type represents all the built-in edge types available in Svelte Flow. You can use this type when you want to add your own custom edges to a flow but still use the built-in types.

import type { BuiltInEdge, Edge } from '@xyflow/svelte'; type CustomEdge = Edge<{ label: string }, 'custom'>; export type AppEdge = BuiltInEdge | CustomEdge;

The four built-in edge types are:

  • default
  • straight
  • step
  • smoothstep