Commit 595e350
[ui5-builder][INTERNAL] lib/processors/jsdoc: support optional methods also in classes
So far, the documentation build only allowed optional methods in
interfaces. But UI5 in several places specifies methods on a base class
level without implementing them. Subclasses can then implement such a
method to get a certain behavior (example: Control#getAccessibilityInfo).
TypeScript (meanwhile?) allows to describe this as optional methods in
the base class.
To allow to use this and thereby to better describe those methods in
the TypeScript types, the JSDoc template lifts its limitation and writes
out the 'optional' marker also for methods in classes.
Note: this is now even possible for static class methods, although this
is not used yet in the framework.
Cherry-picked from UI5/openui5@a7ccde144.1 parent a3f69a5 commit 595e350
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2308 | 2308 | | |
2309 | 2309 | | |
2310 | 2310 | | |
2311 | | - | |
| 2311 | + | |
2312 | 2312 | | |
2313 | 2313 | | |
2314 | 2314 | | |
| |||
0 commit comments