Skip to content

TextEditorBase: Improve typing && Refactor#33081

Merged
marker-dao merged 3 commits into
DevExpress:26_1from
marker-dao:26_1_text_editor_base_types
Mar 31, 2026
Merged

TextEditorBase: Improve typing && Refactor#33081
marker-dao merged 3 commits into
DevExpress:26_1from
marker-dao:26_1_text_editor_base_types

Conversation

@marker-dao
Copy link
Copy Markdown
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Mar 27, 2026
@marker-dao marker-dao marked this pull request as ready for review March 27, 2026 19:39
@marker-dao marker-dao requested a review from a team as a code owner March 27, 2026 19:39
Copilot AI review requested due to automatic review settings March 27, 2026 19:39
Copy link
Copy Markdown
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 focuses on improving TypeScript typing and doing small refactors around the internal TextEditorBase implementation and related text editor/mask/button plumbing.

Changes:

  • Adjusted typings for text editor buttons (TextEditorButtonInfo.Ctor) and several editor event handler signatures.
  • Refactored parts of TextEditorBase to reduce ts-expect-error usage and improve option destructuring / readability.
  • Updated mask/editor _renderValue return typing and added ESLint suppressions for intentionally un-awaited calls.

Reviewed changes

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

Show a summary per file
File Description
packages/devextreme/js/__internal/ui/text_box/texteditor_button_collection/index.ts Updates the constructor typing for button metadata (Ctor).
packages/devextreme/js/__internal/ui/text_box/text_editor.mask.ts Removes DeferredObj typing usage and changes _renderValue signature; adds no-floating-promises suppressions.
packages/devextreme/js/__internal/ui/text_box/m_text_editor.base.ts Main refactor/typing pass for TextEditorBase (events, options, _renderValue, clear handler typing, etc.).
packages/devextreme/js/__internal/ui/date_box/date_box.base.ts Aligns _clearValueHandler typing with the updated base signature.
packages/devextreme/js/__internal/ui/chat/message_box/chat_text_area.ts Aligns _keyPressHandler typing with updated base signature.

Comment thread packages/devextreme/js/__internal/ui/text_box/m_text_editor.base.ts Outdated
Comment thread packages/devextreme/js/__internal/ui/text_box/m_text_editor.base.ts Outdated
Comment thread packages/devextreme/js/__internal/ui/text_box/m_text_editor.base.ts Outdated
Comment thread packages/devextreme/js/__internal/ui/date_box/date_box.base.ts Outdated
Comment thread packages/devextreme/js/__internal/ui/text_box/m_text_editor.base.ts Outdated
Comment thread packages/devextreme/js/__internal/ui/text_box/m_text_editor.base.ts Outdated
@marker-dao marker-dao closed this Mar 27, 2026
@marker-dao marker-dao reopened this Mar 27, 2026
@marker-dao marker-dao force-pushed the 26_1_text_editor_base_types branch from 88223d0 to 1db4aa1 Compare March 30, 2026 14:00
Copilot AI review requested due to automatic review settings March 30, 2026 14:48
Copy link
Copy Markdown
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

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Comment thread packages/devextreme/js/__internal/ui/popover/m_popover.ts
@marker-dao marker-dao merged commit 2b661ce into DevExpress:26_1 Mar 31, 2026
176 of 177 checks passed
@marker-dao marker-dao deleted the 26_1_text_editor_base_types branch March 31, 2026 07:49
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.

3 participants