-
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
Inconsistencies between documentation and TS types #329
Comments
No, it's not an official API issue. The TypeScript generation doesn't distinguish between protected and public. protected is a bit special in UI5 APIs. When we started using it, "protected" had no meaning in JavaScript. We started to use it in control development, where the standard meaning (limited to the inheritance tree) did fit quite well. But over time, the meaning in UI5 evolved to "intended for control development, but not for applications". This no longer fitted the standard meaning 100%. There's an additional developer guide page underway (since months, I have to check what the status is) which should explain this better (kind of legend for the API reference). I think the dts-generator ignored the |
Clear, thanks for the response. |
Well, access level modifiers have universal meaning in OOP world, you will not find different |
Not sure if is worth to start this discussion again. But there is not a single, universal meaning for access modifiers. Different languages differ in detail, especially for If you want, what we do in UI5 is quite similar to what C++ does by allowing friends to access Anyhow, if you stick to the universal meaning, you shouldn't do any mistakes. |
Agreed :) C++ does have "friends", you are correct on that. Edit: |
This issue is regarding
fire<EventName>
and similar methods, which are marked asprotected
in official documentation, however they arepublic
in TS types. Let's take an example:sap.m.ComboBox
event:
change
method:
fireChange
API:
TS:
So it's either wrong in TS, or in official API.
Please let me know if it is official API issue, in such case I will create issue there.
The text was updated successfully, but these errors were encountered: