Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SModelExtension interface #387

Closed
tortmayr opened this issue Oct 5, 2023 · 1 comment · Fixed by #389
Closed

Remove SModelExtension interface #387

tortmayr opened this issue Oct 5, 2023 · 1 comment · Fixed by #389
Milestone

Comments

@tortmayr
Copy link
Contributor

tortmayr commented Oct 5, 2023

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?

@spoenemann spoenemann added this to the v1.0.0 milestone Oct 5, 2023
@spoenemann
Copy link
Contributor

Yes, we can write notes in the documentation of the respective interfaces instead.

Feel free to create a PR if you have time. I am quite packed in this and next week.

tortmayr added a commit that referenced this issue Oct 6, 2023
Remove the empty `SModelExtensionInterface` and adapt type doc
of feature extension interfaces.

Fixes #387
tortmayr added a commit that referenced this issue Oct 6, 2023
Remove the empty `SModelExtension` interface and adapt type doc
of feature extension interfaces.

Fixes #387
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants