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
UserEdgeType to use them as types.
The diagram renders as below: