-
Notifications
You must be signed in to change notification settings - Fork 28
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
@ui5/ts-interface-generator: add generics to generated interface #376
Comments
@iljapostnovs If I don't miss anything, there is even already a pull request for this: #357 However, that one is stuck a bit, as such generic classes cannot be used as type of control (or ManagedObject) properties/aggregations etc. - the UI5 way of specifying them just doesn't allow it. As result, after merging that PR, one would be able to generate interfaces for classes with generics, but one could NOT use these classes in the metadata of another class (see #357 (comment)). And I don't see a proper way to overcome this at the time being. What do you think, is this restriction one you (and most) could live with and is the overall feature still worth it? Or would it be a deal-breaker and too confusing when those classes cannot be used everywhere? |
@akudev, I understood the problem. |
Hi @akudev, |
Hi.
There is an issue when generating interfaces for generic classes. Example:
Generated interface:
As a result, error message is shown:
All declarations of 'MyGenericClass' must have identical type parameters
Which, basically, means, that generated interface should be:
Would it be possible to add generics to the interface?
Thanks!
The text was updated successfully, but these errors were encountered: