-
-
Notifications
You must be signed in to change notification settings - Fork 551
/
index.ts
36 lines (31 loc) · 1.33 KB
/
index.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
import * as Immutable from "immutable";
import { ContentsRecordProps, makeContentsRecord } from "./contents";
import { HostsRecordProps, makeHostsRecord } from "./hosts";
import { KernelsRecordProps, makeKernelsRecord } from "./kernels";
import { KernelspecsRecordProps, makeKernelspecsRecord } from "./kernelspecs";
import { makeModalsRecord, ModalsRecordProps } from "./modals";
import { makeTransformsRecord, TransformsRecordProps } from "./transforms";
export * from "./contents";
export * from "./hosts";
export * from "./kernels";
export * from "./kernel-info";
export * from "./kernelspecs";
export * from "./modals";
export * from "./transforms";
export interface EntitiesRecordProps {
contents: Immutable.RecordOf<ContentsRecordProps>;
hosts: Immutable.RecordOf<HostsRecordProps>;
kernels: Immutable.RecordOf<KernelsRecordProps>;
kernelspecs: Immutable.RecordOf<KernelspecsRecordProps>;
modals: Immutable.RecordOf<ModalsRecordProps>;
transforms: Immutable.RecordOf<TransformsRecordProps>;
}
export type EntitiesRecord = Immutable.RecordOf<EntitiesRecordProps>;
export const makeEntitiesRecord = Immutable.Record<EntitiesRecordProps>({
contents: makeContentsRecord(),
hosts: makeHostsRecord(),
kernels: makeKernelsRecord(),
kernelspecs: makeKernelspecsRecord(),
modals: makeModalsRecord(),
transforms: makeTransformsRecord()
});