Svelvet is written in TypeScript, and provides types for the nodes and
edges for you to use. Below is an example of a simple flow diagram utilizing our types.
Set the script tag to
Edge to use them as types.
The diagram renders as below: