-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathViewData.ts
53 lines (51 loc) · 2.33 KB
/
ViewData.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { isTiledImageData, TiledImageData } from 'libraries/component-tiled-image'
import { isOneOf } from '@figurl/core-utils'
import { CompositeViewData, isCompositeViewData } from "libraries/view-composite"
import { ConsoleViewData, isConsoleViewData } from "libraries/view-console"
import { EpochsViewData, isEpochsViewData } from "libraries/view-epochs"
import { ExperimentalSelector1ViewData, isExperimentalSelector1ViewData } from 'libraries/view-experimental-selector-1'
import { isMountainLayoutViewData, MountainLayoutViewData } from "libraries/view-mountain-layout"
import { isMultiTimeseriesViewData, MultiTimeseriesViewData } from "libraries/view-multi-timeseries"
import { isPositionPdfPlotViewData, PositionPdfPlotViewData } from "libraries/view-position-pdf-plot"
import { isPositionPlotViewData, PositionPlotViewData } from "libraries/view-position-plot"
import { isSortingCurationViewData, SortingCurationViewData } from 'libraries/view-sorting-curation'
import { isSortingLayoutViewData, SortingLayoutViewData } from 'libraries/view-sorting-layout'
import { isSortingSelectionViewData, SortingSelectionViewData } from 'libraries/view-sorting-selection'
import { isSummaryViewData, SummaryViewData } from "libraries/view-summary"
import { isTest1ViewData, Test1ViewData } from 'libraries/view-test-1'
import { EphysTracesViewData, isEphysTracesViewData } from 'libraries/view-ephys-traces-dev'
export type ViewData =
CompositeViewData |
MultiTimeseriesViewData |
SummaryViewData |
MountainLayoutViewData |
PositionPlotViewData |
PositionPdfPlotViewData |
EpochsViewData |
ConsoleViewData |
SortingLayoutViewData |
SortingCurationViewData |
TiledImageData |
SortingSelectionViewData |
ExperimentalSelector1ViewData |
Test1ViewData |
EphysTracesViewData
export const isViewData = (x: any): x is ViewData => {
return isOneOf([
isCompositeViewData,
isMultiTimeseriesViewData,
isSummaryViewData,
isMountainLayoutViewData,
isPositionPlotViewData,
isPositionPdfPlotViewData,
isEpochsViewData,
isConsoleViewData,
isSortingLayoutViewData,
isSortingCurationViewData,
isTiledImageData,
isSortingSelectionViewData,
isExperimentalSelector1ViewData,
isTest1ViewData,
isEphysTracesViewData
])(x)
}