ui5-typescript icon indicating copy to clipboard operation
ui5-typescript copied to clipboard

[@types/[email protected]] localizationChanged event parameters missing

Open HappyHepo opened this issue 1 year ago • 1 comments

Describe the bug The 1.115 type definitions do not contain event parameters for the localizationChanged event (see https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.core.Core%23events/localizationChanged). Consequently, the attach function does not contain the proper function signature for the callback.

Additional context Package: @types/[email protected]

HappyHepo avatar Jun 18 '23 13:06 HappyHepo

Thanks for reporting! It's because Core is not an EventProvider - only for them the APIs are generated automatically. In the Core, these methods (attach... detach... etc. are explicitly written, so the JSDoc has to write the complete signature.

akudev avatar Jun 19 '23 14:06 akudev