Skip to content

Conversation

@pharret31
Copy link
Contributor

No description provided.

@pharret31 pharret31 self-assigned this Dec 29, 2025
@pharret31 pharret31 marked this pull request as ready for review December 29, 2025 19:14
@pharret31 pharret31 requested a review from a team as a code owner December 29, 2025 19:14
Copilot AI review requested due to automatic review settings December 29, 2025 19:14
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 fixes TypeScript problems and improves type safety across Navigation and StrictMode demos, enabling TypeScript checking for several demo categories (Button, Charts, Form, Gauges, List, Menu, ScrollView, Splitter, Tabs, TreeView).

Key Changes:

  • Removed TypeScript exclusions for 14 demo categories from tsconfig.react-check.json
  • Added proper null/undefined checks with optional chaining throughout demos
  • Added explicit type annotations to functions and variables
  • Created type definition files where missing
  • Converted utility objects/services to properly typed exports

Reviewed changes

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

Show a summary per file
File Description
apps/demos/tsconfig.react-check.json Removed exclusions for Button, Charts, Form, Gauges, List, Menu, NavigationOverview, ScrollView, Splitter, Tabs, and TreeView demos
apps/demos/Demos/TreeView/**/React/*.tsx Added null checks for itemData, optional chaining for properties, and updated state types to allow undefined
apps/demos/Demos/Gauges/**/React/*.tsx Added type annotations to functions, proper null checks, and created missing type definition files
apps/demos/Demos/Charts/**/React/*.tsx Extensive type improvements: proper event types, null checks, return type annotations, and type definition files
apps/demos/Demos/Form/**/React/*.tsx Fixed prop spreading order, updated state types, and improved null safety
apps/demos/Demos/Menu/Scrolling/React/*.tsx Added null check for submenuContainer before accessing style property
apps/demos/Demos/List/Selection/React/*.tsx Simplified boolean state type and added nullish coalescing
apps/demos/Demos/ScrollView/Overview/React/*.tsx Added explicit type for content state and proper undefined handling
apps/demos/Demos/Splitter/Overview/React/*.tsx Added proper ref typing and instanceof check before DOM manipulation
apps/demos/Demos/Button/PredefinedTypes/React/*.tsx Added nullish coalescing for option retrieval

dmlvr
dmlvr previously approved these changes Dec 30, 2025
dmlvr
dmlvr previously approved these changes Dec 30, 2025
@pharret31 pharret31 changed the title Demos: Fix TS problems and make TS improvements (Navigation | StrictMode) Demos: Fix TS problems and make TS improvements in strict mode (Navigation) Dec 30, 2025
Copilot AI review requested due to automatic review settings December 30, 2025 14:01
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

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

dmlvr
dmlvr previously approved these changes Dec 30, 2025
@pharret31 pharret31 merged commit 5417eb1 into DevExpress:26_1 Dec 30, 2025
145 of 146 checks passed
@pharret31 pharret31 deleted the 26_1_2979-strict-mode branch December 30, 2025 15:49
pharret31 added a commit to pharret31/DevExtreme that referenced this pull request Dec 30, 2025
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