Skip to content

Conversation

@dmlvr
Copy link
Contributor

@dmlvr dmlvr commented Jan 7, 2026

No description provided.

@dmlvr dmlvr self-assigned this Jan 7, 2026
};

const setComponentAria = (element) => {
const setComponentAria = (element: dxElementWrapper) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the DxElement would be a better option here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I'm trying to use DxElement the error persists
image
Property 'attr' does not exist on type 'HTMLElement'.

I found other way, take a look, please

},
];
export const schedulerDataSource = new DataSource(data);
export const schedulerDataSource = new DataSource(data) as unknown as DataSource<SchedulerTypes.Appointment>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to type that without 'as unknown'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dmlvr dmlvr changed the title DRAFT: fix ts react scheduler demos Fix TS problems and make TS improvements in demos (Scheduler) Jan 7, 2026
@dmlvr dmlvr added the 26_1 label Jan 7, 2026
@dmlvr dmlvr changed the title Fix TS problems and make TS improvements in demos (Scheduler) Scheduler: fix ts issues in demos in strict mode Jan 7, 2026
@dmlvr dmlvr marked this pull request as ready for review January 7, 2026 13:18
@dmlvr dmlvr requested a review from a team as a code owner January 7, 2026 13:18
Copilot AI review requested due to automatic review settings January 7, 2026 13:18
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 strict mode issues in Scheduler demos by enabling strict type checking and resolving the resulting compilation errors. The changes primarily involve improving type safety through better import patterns, null safety checks, and explicit type conversions.

Key Changes

  • Removed Scheduler and Pagination demos from the strict mode exclusion list in tsconfig.react-check.json, enabling strict type checking for these demos
  • Separated type-only imports using the type keyword to comply with verbatimModuleSyntax configuration
  • Added null safety checks with optional chaining (?.) to handle potentially undefined values
  • Replaced direct data arrays with DataSource wrapper to ensure proper type handling

Reviewed changes

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

Show a summary per file
File Description
apps/demos/tsconfig.react-check.json Removed Scheduler/Pagination exclusions; added new component exclusions to expand strict type checking coverage
apps/demos/Demos/Scheduler//React/.tsx Separated type-only imports from value imports using type keyword
apps/demos/Demos/Scheduler/Toolbar/React/* Replaced DataSource wrapper with plain array, added explicit Number() conversion for cellDuration
apps/demos/Demos/Scheduler/Templates/React/* Added null safety checks with optional chaining for form instance operations
apps/demos/Demos/Scheduler/Editing/React/* Added nullish coalescing operator to handle potentially undefined text values
apps/demos/Demos/Scheduler/CellTemplates/React/* Changed null to undefined for className, added type guards, improved null safety
apps/demos/Demos/Scheduler/ContextMenu/React/* Added optional chaining for potentially undefined properties
apps/demos/Demos/Scheduler/GoogleCalendarIntegration/React/* Added proper typing for getData function parameters
apps/demos/Demos/Pagination/Overview/React/* Separated type-only imports using type keyword
Comments suppressed due to low confidence (1)

apps/demos/tsconfig.react-check.json:61

  • The Demos/Localization/**/React/**/*.ts and Demos/Localization/**/React/**/*.tsx patterns are duplicated in the exclude list. Lines 30-31 and lines 60-61 contain the same exclusion patterns. One set should be removed to avoid redundancy.

sjbur
sjbur previously approved these changes Jan 7, 2026
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 46 out of 46 changed files in this pull request and generated 4 comments.

pharret31
pharret31 previously approved these changes Jan 7, 2026
Copilot AI review requested due to automatic review settings January 8, 2026 08:43
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 46 out of 46 changed files in this pull request and generated 7 comments.

Copilot AI review requested due to automatic review settings January 8, 2026 10:35
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 46 out of 46 changed files in this pull request and generated 3 comments.

@dmlvr dmlvr merged commit 177fc84 into DevExpress:26_1 Jan 8, 2026
168 of 172 checks passed
dmlvr added a commit to dmlvr/DevExtreme that referenced this pull request Jan 8, 2026
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.

5 participants