Skip to content

Conversation

@marker-dao
Copy link
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Feb 12, 2026
@marker-dao marker-dao marked this pull request as ready for review February 12, 2026 13:15
@marker-dao marker-dao requested a review from a team as a code owner February 12, 2026 13:15
Copilot AI review requested due to automatic review settings February 12, 2026 13:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves TypeScript type safety in the TextEditorButtonCollection component by removing @ts-expect-error comments and adding proper type definitions.

Changes:

  • Enhanced the TextEditorButtonInfo type to explicitly include name: string and use typeof CustomButton instead of just CustomButton
  • Refactored button mapping logic to handle string and object buttons separately with proper type guards
  • Updated error handling to use proper Error objects instead of throwing strings

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
m_index.ts Improved type definitions for TextEditorButtonInfo, refactored button validation logic, and removed TypeScript error suppressions
m_button.ts Added null support to $container type, changed string throws to Error objects, and removed unnecessary TypeScript error suppressions

@marker-dao marker-dao merged commit 181cf75 into DevExpress:26_1 Feb 12, 2026
190 of 195 checks passed
@marker-dao marker-dao deleted the 26_1_textbox_typing branch February 12, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants