Repository navigation
Fix TS in scheduler demos - #36518
Open
GoodDayForSurf wants to merge 2 commits into
Open
GoodDayForSurf wants to merge 2 commits into
GoodDayForSurf wants to merge 2 commits into
Conversation
GoodDayForSurf
marked this pull request as ready for review
November 24, 2026 10:15
GoodDayForSurf
requested review from
a team
and
a balanced review from Copilot
November 24, 2026 10:15
Contributor
There was a problem hiding this comment.
🟡 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.