Skip to content

Improve types for ng demos (map, vectormap, localization) - #36523

Open
dxvladislavvolkov wants to merge 3 commits into
DevExpress:mainfrom
dxvladislavvolkov:improve-demos-ts
Open

dxvladislavvolkov wants to merge 3 commits into
DevExpress:mainfrom
dxvladislavvolkov:improve-demos-ts

Conversation

@dxvladislavvolkov

Copy link
Copy Markdown
Contributor

No description provided.

@dxvladislavvolkov
dxvladislavvolkov requested a review from a team November 24, 2026 08:44
@dxvladislavvolkov dxvladislavvolkov self-assigned this Nov 24, 2026
@dxvladislavvolkov
dxvladislavvolkov requested a review from a team as a code owner November 24, 2026 08:44
@dxvladislavvolkov
dxvladislavvolkov requested a review from a team as a code owner November 24, 2026 08:44
Copilot AI balanced review requested due to automatic review settings November 24, 2026 08:44

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.

🟢 Approval recommended

The review records no active issues with the Angular demo typing and CI-check changes.

No open issues 🎉

What changed in this PR

This PR strengthens TypeScript typing for DevExtreme’s Angular Map, VectorMap, and Localization demos and enables their strict type checks in CI.

Changes:

  • Replace loosely typed models and callbacks with interfaces, component API types, and explicit return types.
  • Add map-data declarations and adjust template bindings and state updates for strict typing.
  • Enable strict Angular checks and targeted lint rules, temporarily excluding unmigrated demo sections.
File Description
apps/​demos/​tsconfig.ngc-check.json Enables strict mode and excludes unmigrated sections.
apps/​demos/​eslint.config.mjs Adds stricter rules for migrated Angular demos.
apps/​demos/​Demos/​VectorMap/​ZoomingAndCentering/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​ZoomingAndCentering/​Angular/​app/​app.service.ts Converts marker models to interfaces.
apps/​demos/​Demos/​VectorMap/​ZoomingAndCentering/​Angular/​app/​app.component.ts Types callbacks and updates reset arguments.
apps/​demos/​Demos/​VectorMap/​TooltipsCustomization/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​TooltipsCustomization/​Angular/​app/​app.service.ts Defines GDP records and optional values.
apps/​demos/​Demos/​VectorMap/​TooltipsCustomization/​Angular/​app/​app.component.ts Types chart callbacks and nullable pie data.
apps/​demos/​Demos/​VectorMap/​PieMarkers/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​PieMarkers/​Angular/​app/​app.service.ts Converts geographic models to interfaces.
apps/​demos/​Demos/​VectorMap/​PieMarkers/​Angular/​app/​app.component.ts Types legend and tooltip callbacks.
apps/​demos/​Demos/​VectorMap/​Palette/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​Palette/​Angular/​app/​app.service.ts Types population records.
apps/​demos/​Demos/​VectorMap/​Palette/​Angular/​app/​app.component.ts Types layer, legend, and tooltip callbacks.
apps/​demos/​Demos/​VectorMap/​Overview/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​Overview/​Angular/​app/​app.service.ts Defines GDP records and optional values.
apps/​demos/​Demos/​VectorMap/​Overview/​Angular/​app/​app.component.ts Types chart callbacks and nullable pie data.
apps/​demos/​Demos/​VectorMap/​MultipleLayers/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​MultipleLayers/​Angular/​app/​app.service.ts Converts geographic models to interfaces.
apps/​demos/​Demos/​VectorMap/​MultipleLayers/​Angular/​app/​app.component.ts Uses the API’s legend callback type.
apps/​demos/​Demos/​VectorMap/​Legend/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​Legend/​Angular/​app/​app.service.ts Adds interfaces and typed population records.
apps/​demos/​Demos/​VectorMap/​Legend/​Angular/​app/​app.component.ts Types legend items and map callbacks.
apps/​demos/​Demos/​VectorMap/​Legend/​Angular/​app/​app.component.html Binds opacity as a number.
apps/​demos/​Demos/​VectorMap/​ImageMarkers/​Angular/​app/​devextreme-vectormap-data.d.ts Declares USA map data types.
apps/​demos/​Demos/​VectorMap/​ImageMarkers/​Angular/​app/​app.service.ts Adds interfaces and types image-name input.
apps/​demos/​Demos/​VectorMap/​FloorPlan/​Angular/​app/​app.service.ts Converts floor-plan models to interfaces.
apps/​demos/​Demos/​VectorMap/​FloorPlan/​Angular/​app/​app.component.ts Types the tooltip callback.
apps/​demos/​Demos/​VectorMap/​DynamicViewport/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​DynamicViewport/​Angular/​app/​app.service.ts Converts viewport coordinates to an interface.
apps/​demos/​Demos/​VectorMap/​DynamicViewport/​Angular/​app/​app.component.ts Separates type imports and annotates handlers.
apps/​demos/​Demos/​VectorMap/​CustomProjection/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​CustomProjection/​Angular/​app/​app.service.ts Adds interfaces and types coordinate arrays.
apps/​demos/​Demos/​VectorMap/​CustomMapData/​Angular/​app/​app.service.ts Converts custom map models to interfaces.
apps/​demos/​Demos/​VectorMap/​CustomMapData/​Angular/​app/​app.component.ts Types the layer customization callback.
apps/​demos/​Demos/​VectorMap/​CustomAnnotations/​Angular/​app/​devextreme-vectormap-data.d.ts Declares USA map data types.
apps/​demos/​Demos/​VectorMap/​CustomAnnotations/​Angular/​app/​app.service.ts Converts annotation data to an interface.
apps/​demos/​Demos/​VectorMap/​CustomAnnotations/​Angular/​app/​app.component.ts Separates type imports and types image paths.
apps/​demos/​Demos/​VectorMap/​ColorsCustomization/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​ColorsCustomization/​Angular/​app/​app.service.ts Defines country data as a typed record.
apps/​demos/​Demos/​VectorMap/​ColorsCustomization/​Angular/​app/​app.component.ts Types tooltip, layer, and click callbacks.
apps/​demos/​Demos/​VectorMap/​BubbleMarkers/​Angular/​app/​devextreme-vectormap-data.d.ts Declares world map data types.
apps/​demos/​Demos/​VectorMap/​BubbleMarkers/​Angular/​app/​app.service.ts Converts marker models to interfaces.
apps/​demos/​Demos/​VectorMap/​BubbleMarkers/​Angular/​app/​app.component.ts Types legend items and tooltip callbacks.
apps/​demos/​Demos/​Map/​Routes/​Angular/​app/​app.service.ts Derives marker and route types from the API.
apps/​demos/​Demos/​Map/​Routes/​Angular/​app/​app.component.ts Types route state and event handlers.
apps/​demos/​Demos/​Map/​ProvidersAndTypes/​Angular/​app/​app.service.ts Constrains settings to API-supported values.
apps/​demos/​Demos/​Map/​OpenStreetMapProvider/​Angular/​app/​app.service.ts Defines non-null marker and route arrays.
apps/​demos/​Demos/​Map/​OpenStreetMapProvider/​Angular/​app/​app.component.ts Types state, imports, and handlers.
apps/​demos/​Demos/​Map/​Markers/​Angular/​app/​app.service.ts Derives marker types with required tooltip data.
apps/​demos/​Demos/​Map/​Markers/​Angular/​app/​app.component.ts Types marker state and replaces JSON cloning.
apps/​demos/​Demos/​Localization/​UsingIntl/​Angular/​app/​app.service.ts Adds model interfaces and return types.
apps/​demos/​Demos/​Localization/​UsingIntl/​Angular/​app/​app.component.ts Types locale handlers and helper methods.
apps/​demos/​Demos/​Localization/​UsingGlobalize/​Angular/​app/​globalize.d.ts Adds an ambient Globalize module declaration.
apps/​demos/​Demos/​Localization/​UsingGlobalize/​Angular/​app/​app.service.ts Adds model interfaces and return types.
apps/​demos/​Demos/​Localization/​UsingGlobalize/​Angular/​app/​app.component.ts Types locale handlers and initialization methods.
.github/​workflows/​visual-tests-demos.yml Runs Angular type checks and reports their outcome.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 24, 2026 10:44

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.

🟢 Approval recommended

No active review issues remain for the Angular demo typing and strict-checking updates.

No open issues 🎉

Review effort: Balanced

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants