Skip to content

Lookup: Improve types#33868

Merged
r-farkhutdinov merged 3 commits into
DevExpress:26_1from
r-farkhutdinov:26_1_lookup_types
Jun 8, 2026
Merged

Lookup: Improve types#33868
r-farkhutdinov merged 3 commits into
DevExpress:26_1from
r-farkhutdinov:26_1_lookup_types

Conversation

@r-farkhutdinov

Copy link
Copy Markdown
Contributor

No description provided.

@r-farkhutdinov r-farkhutdinov self-assigned this Jun 5, 2026
Copilot AI review requested due to automatic review settings June 5, 2026 13:22
@r-farkhutdinov r-farkhutdinov requested a review from a team as a code owner June 5, 2026 13:22

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 focuses on improving TypeScript typings in the internal Lookup implementation, reducing any usage and clarifying event/data types. It also exposes a shared FieldTemplate type from the internal drop-down editor module so Lookup can type its field template rendering more precisely.

Changes:

  • Added/updated a number of explicit types in m_lookup.ts (events, datasource options, toolbar items, return types) and replaced some iterator helpers with typed array iteration.
  • Refactored option access patterns to use object destructuring and optional chaining for clearer typing.
  • Exported FieldTemplate from the internal drop-down editor so it can be imported and used by Lookup.

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/m_lookup.ts Adds stronger typings across the Lookup widget, including events, popup/list config, and template rendering.
packages/devextreme/js/__internal/ui/drop_down_editor/drop_down_editor.ts Exports FieldTemplate for reuse in internal consumers like Lookup.

Comment thread packages/devextreme/js/__internal/ui/m_lookup.ts
Comment thread packages/devextreme/js/__internal/ui/m_lookup.ts Outdated
marker-dao
marker-dao previously approved these changes Jun 5, 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

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

Comment thread packages/devextreme/js/__internal/ui/m_lookup.ts
@r-farkhutdinov r-farkhutdinov merged commit 56f3a11 into DevExpress:26_1 Jun 8, 2026
152 of 154 checks passed
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