Playground Link
The intersection type is a bit confusing. I'm new to dagre, and I see the width and height types on three different interfaces. So what is the width property of the configUnion applied to - the graph, the nodes, or the edges?
If it was something like this:
export interface ConfigInterface {
graphConfig: GraphLabel;
defaultNodeConfig: NodeConfig;
defaultEdgeConfig: EdgeConfig
layoutConfig: LayoutConfig
}
that would make sense.
I'm just confused by this type definition.