You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SModelExtension interface in its current form serves no purpose.
I guess the original idea was to use this as marker interface for all model feature extensions.
However, the concept of empty marker interfaces is something that works well in other strongly-typed languages e.g. Java but
does not translate to typescript.
Since you cannot use an instanceof check for interfaces (and a typeguard for an empty interface is also not an option)
the interface effectively has no purpose. We should probably just remove it before the 1.0.0 release. @spoenemann wdyt?
The text was updated successfully, but these errors were encountered:
The
SModelExtension
interface in its current form serves no purpose.I guess the original idea was to use this as marker interface for all model feature extensions.
However, the concept of empty marker interfaces is something that works well in other strongly-typed languages e.g. Java but
does not translate to typescript.
Since you cannot use an instanceof check for interfaces (and a typeguard for an empty interface is also not an option)
the interface effectively has no purpose. We should probably just remove it before the 1.0.0 release.
@spoenemann wdyt?
The text was updated successfully, but these errors were encountered: