[ts-interface-generator ] Return type for the method "remove" for aggregation of cardinality 0 .. n does not match runtime behaviour #470
Labels
bug
Something isn't working
ts-interface-generator
Related to the ts-interface-generator sub-package
Describe the bug
I was just having a look into OpenUI5 with TypeScript for a private project. I played around with custom controls.
I defined a custom aggreagation with
multiple: true
:This leads to the following generated interface:
Nevertheless during runtime the method
insertColumn
and ``removeColumn` return the inserted or removed element:Expected behavior
The interface generator should generate the return type according to runtime behaviour:
I checked with other aggregations with the cardinality
0 .. n
. They have all the return typeType of Aggregation |null
(seesap.ui.table.Table
orsap.m.Page
).Additional context
I used version
0.8.3
of the module@ui5/ts-interface-generator
and the following OpenUI5 version:The text was updated successfully, but these errors were encountered: