• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jumpinjackie / mapguide-react-layout / 26284293162

22 May 2026 11:08AM UTC coverage: 60.513% (-0.03%) from 60.54%
26284293162

Pull #1652

github

web-flow
Merge 2a478a84d into 2a0d087d5
Pull Request #1652: Replace webpack with Vite for viewer and Storybook builds

3290 of 4038 branches covered (81.48%)

48 of 92 new or added lines in 9 files covered. (52.17%)

14 existing lines in 1 file now uncovered.

16232 of 26824 relevant lines covered (60.51%)

14.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/api/builders/de-arrayify-guards.ts
1
import type { ApplicationDefinition } from "../contracts/fusion";
2
import type { QueryMapFeaturesResponse } from "../contracts/query";
3
import type { RuntimeMap } from "../contracts/runtime-map";
4
import type { SiteVersionResponse } from "../contracts/common";
5
import type { TileSetDefinition } from "../contracts/tile-set-definition";
6
import type { MapDefinition } from "../contracts/map-definition";
7
import type { WebLayout } from "../contracts/weblayout";
8

9
export type DeArrayifiedResult = RuntimeMap | QueryMapFeaturesResponse | WebLayout | ApplicationDefinition | MapDefinition | TileSetDefinition | SiteVersionResponse;
10

11
export function isWebLayout(arg: DeArrayifiedResult): arg is WebLayout {
1✔
12
   return (arg as any).CommandSet != null
2!
NEW
13
      && (arg as any).ContextMenu != null
×
NEW
14
      && (arg as any).Map != null;
×
15
}
2✔
16

17
export function isAppDef(arg: DeArrayifiedResult): arg is ApplicationDefinition {
1✔
18
   return (arg as any).WidgetSet != null;
2✔
19
}
2✔
20

21
export function isMapDef(arg: DeArrayifiedResult): arg is MapDefinition {
1✔
NEW
22
   return (arg as any).Extents != null
×
NEW
23
      && (arg as any).BackgroundColor != null
×
NEW
24
      && (arg as any).CoordinateSystem != null
×
NEW
25
      && (arg as any).MapLayer != null
×
NEW
26
      && (arg as any).MapLayerGroup != null;
×
NEW
27
}
×
28

29
export function isTileSet(arg: DeArrayifiedResult): arg is TileSetDefinition {
1✔
NEW
30
   return (arg as any).Extents != null
×
NEW
31
      && (arg as any).TileStoreParameters != null
×
NEW
32
      && (arg as any).BaseMapLayerGroup != null;
×
NEW
33
}
×
34

35
export function isSiteVersion(arg: DeArrayifiedResult): arg is SiteVersionResponse {
1✔
NEW
36
   return (arg as any).Version != null;
×
NEW
37
}
×
38

39
export function isQueryMapFeaturesResponse(arg: DeArrayifiedResult): arg is QueryMapFeaturesResponse {
1✔
NEW
40
   return (arg as any).FeatureSet != null
×
NEW
41
      || (arg as any).Hyperlink != null
×
NEW
42
      || (arg as any).InlineSelectionImage != null
×
NEW
43
      || (arg as any).SelectedFeatures != null
×
NEW
44
      || (arg as any).Tooltip != null;
×
NEW
45
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc