Skip to content

TextBox Utils: Improve typing#32550

Merged
marker-dao merged 6 commits into
DevExpress:26_1from
marker-dao:26_1_textbox_utils
Feb 12, 2026
Merged

TextBox Utils: Improve typing#32550
marker-dao merged 6 commits into
DevExpress:26_1from
marker-dao:26_1_textbox_utils

Conversation

@marker-dao

Copy link
Copy Markdown
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 16:34
@marker-dao marker-dao requested a review from a team as a code owner February 12, 2026 16:34
Copilot AI review requested due to automatic review settings February 12, 2026 16:34
@marker-dao marker-dao closed this Feb 12, 2026
@marker-dao marker-dao reopened this Feb 12, 2026
r-farkhutdinov
r-farkhutdinov previously approved these changes Feb 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 typing for TextBox utility functions by adding explicit type annotations and better ts-expect-error comments. The changes focus on two utility files that handle scrolling and caret positioning.

Changes:

  • Added explicit TypeScript types to allowScroll and prepareScrollData functions, including parameter types and return types
  • Introduced TextBoxScrollData interface to better define the return type of prepareScrollData
  • Improved ts-expect-error comments to be more descriptive about what needs to be fixed in type definitions
  • Simplified destructuring in m_utils.caret.ts while maintaining the same ts-expect-error documentation

Reviewed changes

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

File Description
packages/devextreme/js/__internal/ui/text_box/m_utils.scroll.ts Added type annotations, interface definition, and improved ts-expect-error comments for scroll utility functions
packages/devextreme/js/__internal/ui/text_box/m_utils.caret.ts Simplified destructuring and improved ts-expect-error comment for mac property

Comment thread packages/devextreme/js/__internal/ui/text_box/m_utils.scroll.ts
Comment thread packages/devextreme/js/__internal/ui/text_box/m_utils.scroll.ts
@marker-dao marker-dao merged commit 24b2ab7 into DevExpress:26_1 Feb 12, 2026
119 of 120 checks passed
@marker-dao marker-dao deleted the 26_1_textbox_utils branch February 12, 2026 18:20
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.

4 participants