Closed sap-sebelao closed 2 years ago
Hi @sap-sebelao , thanks for reporting! A fix has been prepared and is in review internally (Change-Id: Ic2d0db623d41bfe020513e092f6346ecb67a814b).
Note that in general it's better to report an issue for the original control when the issue is in the JSDoc of the control and not in the UI5 type definition generator. A good hint that this is the case is when the official API documentation has the same issue. In this case it also says "void" here: https://ui5.sap.com/#/api/sap.ui.comp.filterbar.FilterItem%23methods/getControl
The fix was now submitted to master, will be in 1.105. Thanks again!
This is a really bad choice for a return type, as void can't even be cast to another type directly, it forces me to cast it via unknown first, like so:
oFilterItem.getControl() as unknown as Control;
.