ui5-typescript
ui5-typescript copied to clipboard
`@sapui5/ts-types-esm` - `SmartTable.getTable` should return a `sap.m.Table`
but its return type is object
/**
* returns the internally used table object
*/
getTable(): object;
(i couldn't find where SmartTable was defined in https://github.com/SAP/openui5)
"object" is not the best choice, indeed. But it's also not sap.m.Table. It rather should be sap.m.Table | sap.ui.table.Table | sap.ui.table.TreeTable | sap.ui.table.AnalyticalTable. Strictly spoken, the last two are not necessary as they are subclasses of sap.ui.table.Table, but explicitly naming them might help to understand the behavior of the getTable method better.
You can't find SmartTable in openui5 as it is not part of it. The sap.ui.comp library is only part of the bigger SAPUI5 package. I'll forward this issue internally to the corresponding colleagues.