Skip to content
Permalink
e0a1714279
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
45 lines (41 sloc) 1.08 KB
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;
};
}