SchemaLink / webapp

A schema drawing application
https://fl-14-97.zhdk.cloud.switch.ch/
GNU Affero General Public License v3.0
1 stars 0 forks source link

Improve typing for relationships #33

Open simoneguzzi opened 2 months ago

simoneguzzi commented 2 months ago

Relationships are now of two types: association and inheritance. This is handled using a relationshipType attribute. Relationships of a different type allow for different attributes, or different ranges for the same attribute. When this is the case, we should use interfaces and type guards to provide better typing and require less if/else logic.