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

jumpinjackie / mapguide-react-layout / 26285162901

22 May 2026 11:28AM UTC coverage: 60.511% (-0.03%) from 60.54%
26285162901

Pull #1652

github

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

3291 of 4039 branches covered (81.48%)

49 of 96 new or added lines in 10 files covered. (51.04%)

16232 of 26825 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