// tslint:disable:max-line-length import { KernelspecInfo, KernelspecProps } from "@nteract/types"; import { Action, ErrorAction, HasContent, HasHost, HasKernelspecs, makeActionFunction, makeErrorActionFunction } from "../utils"; export const FETCH_KERNELSPECS = "CORE/FETCH_KERNELSPECS"; export const FETCH_KERNELSPECS_FULFILLED = "CORE/FETCH_KERNELSPECS_FULFILLED"; export const FETCH_KERNELSPECS_FAILED = "CORE/FETCH_KERNELSPECS_FAILED"; export const SET_KERNELSPEC_INFO = "SET_KERNELSPEC_INFO"; export type FetchKernelspecs = Action ; export type FetchKernelspecsFulfilled = Action ; export type FetchKernelspecsFailed = ErrorAction; export type SetKernelspecInfo = Action ; // "legacy" action that pushes kernelspec info back up for the notebook document export const fetchKernelspecs = makeActionFunction (FETCH_KERNELSPECS); export const fetchKernelspecsFulfilled = makeActionFunction (FETCH_KERNELSPECS_FULFILLED); export const fetchKernelspecsFailed = makeErrorActionFunction (FETCH_KERNELSPECS_FAILED); export const setKernelspecInfo = makeActionFunction (SET_KERNELSPEC_INFO);