Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45 lines (41 sloc)
1.08 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}; | |
} |