Skip to content

Fix TS in scheduler demos - #36518

Open
GoodDayForSurf wants to merge 2 commits into
DevExpress:mainfrom
GoodDayForSurf:main_ts_angular_demos_scheduler
Open

GoodDayForSurf wants to merge 2 commits into
DevExpress:mainfrom
GoodDayForSurf:main_ts_angular_demos_scheduler

Conversation

@GoodDayForSurf

Copy link
Copy Markdown
Contributor

No description provided.

@GoodDayForSurf GoodDayForSurf self-assigned this Nov 23, 2026
@GoodDayForSurf
GoodDayForSurf marked this pull request as ready for review November 24, 2026 10:15
@GoodDayForSurf
GoodDayForSurf requested review from a team as code owners November 24, 2026 10:15
@GoodDayForSurf
GoodDayForSurf requested review from a team and a balanced review from Copilot November 24, 2026 10:15

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.

🟡 Changes recommended

End-date-only appointment updates can bypass disabled-time validation, and the shared Angular check no longer covers non-Scheduler demos.

2 open issues
What changed in this PR

This PR updates DevExtreme’s Angular Scheduler demos for strict TypeScript checking and enables their Angular compiler check in CI.

Changes:

  • Replace data-only classes with interfaces and add explicit types for handlers, parameters, and state.
  • Adjust optional-value handling and Google Calendar request typing.
  • Enable strict checking with bundler module resolution, scoped to Scheduler demos.
File Description
apps/​demos/​tsconfig.ngc-check.json Enable strict checking and limit scope to Scheduler.
apps/​demos/​Demos/​Scheduler/​VirtualScrolling/​Angular/​app/​app.service.ts Convert models to interfaces and type generation helpers.
apps/​demos/​Demos/​Scheduler/​Toolbar/​Angular/​app/​app.service.ts Type date-helper parameters.
apps/​demos/​Demos/​Scheduler/​Toolbar/​Angular/​app/​app.component.ts Add option defaults and use the typed data source.
apps/​demos/​Demos/​Scheduler/​TimeZonesSupport/​Angular/​app/​app.service.ts Convert data and location models to interfaces.
apps/​demos/​Demos/​Scheduler/​TimeZonesSupport/​Angular/​app/​app.component.ts Use optional editor access.
apps/​demos/​Demos/​Scheduler/​Timelines/​Angular/​app/​app.service.ts Convert timeline models to interfaces.
apps/​demos/​Demos/​Scheduler/​Templates/​Angular/​app/​app.service.ts Convert template data models to interfaces.
apps/​demos/​Demos/​Scheduler/​Templates/​Angular/​app/​app.component.ts Type toolbar callbacks and guard form access.
apps/​demos/​Demos/​Scheduler/​SimpleArray/​Angular/​app/​app.service.ts Convert the appointment model to an interface.
apps/​demos/​Demos/​Scheduler/​Resources/​Angular/​app/​app.service.ts Convert appointment and resource models to interfaces.
apps/​demos/​Demos/​Scheduler/​ResolveTimeConflicts/​Angular/​app/​app.component.ts Handle optional label configuration.
apps/​demos/​Demos/​Scheduler/​RecurringAppointments/​Angular/​app/​app.service.ts Convert appointment and resource models to interfaces.
apps/​demos/​Demos/​Scheduler/​Overview/​Angular/​app/​app.service.ts Convert employee and appointment models to interfaces.
apps/​demos/​Demos/​Scheduler/​Overview/​Angular/​app/​app.component.ts Type dynamic CSS-class maps.
apps/​demos/​Demos/​Scheduler/​MultilevelGrouping/​Angular/​app/​app.service.ts Convert grouping models to interfaces.
apps/​demos/​Demos/​Scheduler/​MultilevelGrouping/​Angular/​app/​app.component.ts Type the room-selection event.
apps/​demos/​Demos/​Scheduler/​IndividualViewsCustomization/​Angular/​app/​app.service.ts Convert view data models to interfaces.
apps/​demos/​Demos/​Scheduler/​HiddenDays/​Angular/​app/​app.service.ts Convert the appointment model to an interface.
apps/​demos/​Demos/​Scheduler/​GroupingByResources/​Angular/​app/​app.service.ts Convert appointment and priority models to interfaces.
apps/​demos/​Demos/​Scheduler/​GroupByDate/​Angular/​app/​app.service.ts Convert appointment and priority models to interfaces.
apps/​demos/​Demos/​Scheduler/​GoogleCalendarIntegration/​Angular/​app/​app.component.ts Type the response and pass query parameters explicitly.
apps/​demos/​Demos/​Scheduler/​Editing/​Angular/​app/​app.service.ts Convert the appointment model to an interface.
apps/​demos/​Demos/​Scheduler/​Editing/​Angular/​app/​app.component.ts Allow undefined appointment text in notifications.
apps/​demos/​Demos/​Scheduler/​DragAndDrop/​Angular/​app/​app.service.ts Convert appointment and task models to interfaces.
apps/​demos/​Demos/​Scheduler/​DragAndDrop/​Angular/​app/​app.component.ts Narrow drag-handler event requirements.
apps/​demos/​Demos/​Scheduler/​CustomViewDuration/​Angular/​app/​app.service.ts Convert the appointment model to an interface.
apps/​demos/​Demos/​Scheduler/​CurrentTimeIndicator/​Angular/​app/​app.service.ts Convert appointment and movie models to interfaces.
apps/​demos/​Demos/​Scheduler/​CreateFromSelection/​Angular/​app/​app.service.ts Convert appointment and priority models to interfaces.
apps/​demos/​Demos/​Scheduler/​CreateFromSelection/​Angular/​app/​app.component.ts Type the selection-end event.
apps/​demos/​Demos/​Scheduler/​ContextMenu/​Angular/​app/​app.component.ts Handle optional event data and capture resource IDs directly.
apps/​demos/​Demos/​Scheduler/​CellTemplates/​Angular/​app/​app.service.ts Convert the appointment data model to an interface.
apps/​demos/​Demos/​Scheduler/​CellTemplates/​Angular/​app/​app.component.ts Adjust date validation, editor access, and element typing.
apps/​demos/​Demos/​Scheduler/​BasicViews/​Angular/​app/​app.service.ts Convert the appointment model to an interface.
apps/​demos/​Demos/​Scheduler/​AppointmentCountPerCell/​Angular/​app/​app.service.ts Convert appointment and resource models to interfaces.
apps/​demos/​Demos/​Scheduler/​AllDayPanelMode/​Angular/​app/​app.service.ts Convert the appointment model to an interface.
apps/​demos/​Demos/​Scheduler/​AllDayPanelMode/​Angular/​app/​app.component.ts Type panel-mode state and available values.
apps/​demos/​Demos/​Scheduler/​Agenda/​Angular/​app/​app.service.ts Convert agenda models to interfaces.
apps/​demos/​Demos/​Scheduler/​Adaptability/​Angular/​app/​app.service.ts Convert appointment and resource models to interfaces.
.github/​workflows/​visual-tests-demos.yml Enable the Angular TypeScript check.

Review effort: Balanced

Comment on lines +151 to +152
if (!startDate || !endDate) {
return true;

"include": [
"Demos/**/Angular/**/*.ts",
"Demos/Scheduler/**/Angular/**/*.ts",

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants