-
-
Notifications
You must be signed in to change notification settings - Fork 550
/
kernelspecs.ts
45 lines (41 loc) · 1.08 KB
/
kernelspecs.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
import {
ContentRef,
HostRef,
KernelspecProps,
KernelspecRecord,
KernelspecsRef
} from "@nteract/types";
export const FETCH_KERNELSPECS = "CORE/FETCH_KERNELSPECS";
export interface FetchKernelspecs {
type: "CORE/FETCH_KERNELSPECS";
payload: {
kernelspecsRef: KernelspecsRef;
hostRef: HostRef;
};
}
export const FETCH_KERNELSPECS_FULFILLED = "CORE/FETCH_KERNELSPECS_FULFILLED";
export interface FetchKernelspecsFulfilled {
type: "CORE/FETCH_KERNELSPECS_FULFILLED";
payload: {
kernelspecsRef: KernelspecsRef;
hostRef: HostRef;
defaultKernelName: string;
kernelspecs: { [kernelspec: string]: KernelspecProps };
};
}
export const FETCH_KERNELSPECS_FAILED = "CORE/FETCH_KERNELSPECS_FAILED";
export interface FetchKernelspecsFailed {
type: "CORE/FETCH_KERNELSPECS_FAILED";
payload: {
kernelspecsRef: KernelspecsRef;
error: object;
};
}
export const SET_KERNEL_METADATA = "SET_KERNEL_METADATA";
export interface SetKernelMetadata {
type: "SET_KERNEL_METADATA";
payload: {
kernelInfo: KernelspecRecord;
contentRef: ContentRef;
};
}