plugnplay icon indicating copy to clipboard operation
plugnplay copied to clipboard

Suggestion: Add Return-Type to PluginLoaderBase Class

Open mxzinke opened this issue 4 years ago • 1 comments

I just encountered at trying out the package, that it would be cleaner on my implementation, when I could define explicit Return-Types.

With that each Plugin-Type has a predefined Interface, which is usable at the Plugin-Manager side and it is more clearer what is actually usable. Also the "weird" type-definition is not needed anymore, because it can be done by flow (or even typescript?).

What do you think?

Ah yeah, if you need someone implementing this, I am your men! 😉

mxzinke avatar Sep 17 '20 14:09 mxzinke

I would love to switch to TypeScript, if that was in place this would be a no-brainer. The goal with the "weird" type definition is that 3rd parties that define widgets of a predefined type adhere to the definition regardless of the technology used in that 3rd party project.

I have not been able to implement many of the ideas that I have for this project. I am looking for someone with time and energy to help out with this. Would you be interested?

e0ipso avatar Sep 17 '20 16:09 e0ipso