Repository navigation
Improve types for ng demos (map, vectormap, localization) - #36523
Open
dxvladislavvolkov wants to merge 3 commits into
Open
dxvladislavvolkov wants to merge 3 commits into
dxvladislavvolkov wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟢 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
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.