SAP / ui5-typescript

Tooling to enable TypeScript support in SAPUI5/OpenUI5 projects
https://sap.github.io/ui5-typescript
Apache License 2.0
202 stars 28 forks source link

Missing type definition for `sap.m.table.ColumnWidthController` #423

Closed junwei-tj closed 1 year ago

junwei-tj commented 1 year ago

Describe the bug In sap.m.d.ts, there isn't a declaration for sap.m.table.ColumnWidthController, hence it is not possible to import this class. This class is used for the personalization of responsive tables, as shown here: https://openui5.hana.ondemand.com/entity/sap.m.p13n.Engine/sample/sap.m.sample.p13n.Engine/code

In the UI5 docs, sap.m.table.ColumnWidthController has already been documented (https://openui5.hana.ondemand.com/api/sap.m.table.ColumnWidthController), hence my reason for posting this as an issue here. My apologies if this should be posted in the OpenUI5 repo instead.

codeworrior commented 1 year ago

What version of the sap.m.d.ts file are you referring to? Looking for example at DefinitelyTyped, I see a module sap/m/table/ColumnWidthController.

junwei-tj commented 1 year ago

I am using 1.118.0. Is it perhaps only introduced after 1.118.0?

codeworrior commented 1 year ago

The API unfortunately does not contain a @since tag, but as far as I can see, it was added only in 1.120 (with SAP/openui5@66294feabb823ab33c14efebcc131919134e36db)

junwei-tj commented 1 year ago

I see! Then perhaps this is a non-issue. Thanks for the help!