Skip to content

fix(uxc-integration): Enabled .d.ts generation for seamless wrappers#9

Open
PetyaMarkovaBogdanova wants to merge 1 commit intomainfrom
add-ts-integration2
Open

fix(uxc-integration): Enabled .d.ts generation for seamless wrappers#9
PetyaMarkovaBogdanova wants to merge 1 commit intomainfrom
add-ts-integration2

Conversation

@PetyaMarkovaBogdanova
Copy link
Copy Markdown
Collaborator

This pull request focuses on improving type safety and code clarity in the TypeScript controllers, as well as updating tooling and configuration for better development experience. The main changes include removing unnecessary type assertions and error suppressions, refactoring event handling to use UI5's APIs, and updating dependencies and middleware configuration.

TypeScript and Controller Improvements:

Removed unnecessary type assertions (as unknown as ...) and @ts-expect-error comments in App.controller.ts and Notifications.controller.ts, replacing them with direct and type-safe usage of UI5 Web Components and their APIs. [1] [2] [3] [4] [5] [6]

Refactored event handling for user menu and notifications in App.controller.ts to use UI5's attachItemClick and setter methods (setOpener, setOpen) instead of directly manipulating properties, increasing code robustness and future compatibility.

Tooling and Configuration Updates:

Upgraded ui5-tooling-modules dependency from 3.30.2 to 3.35.0 in package.json for improved module support and bug fixes.

Enhanced ui5.yaml server middleware configuration: disabled persistent cache for development and enabled DTS file generation for web components, improving developer workflow and TypeScript integration.

Internal Reference: BGSOFUIPIRIN-6943

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant