@nteract/epics
Version:
Redux-Observable epics for nteract apps
26 lines (25 loc) • 1.07 kB
TypeScript
import { StateObservable } from "redux-observable";
import { Observable } from "rxjs";
import { NewKernelAction, KillKernelSuccessful } from "@nteract/actions";
import { AppState } from "@nteract/types";
/**
* An epic that emits comm actions from the backend kernel
* @param {Observable} action$ Action Observable from redux-observable
* @param {redux.Store} store the redux store
* @return {Observable} Comm actions
*/
export declare const commListenEpic: (action$: Observable<NewKernelAction | KillKernelSuccessful>, state$: StateObservable<AppState>) => Observable<import("@nteract/actions").CommOpenAction | {
type: "APPEND_OUTPUT";
payload: import("@nteract/actions/lib/utils").HasCell & {
output: import("@nteract/commutable").OnDiskOutput;
};
} | {
type: "EXECUTE_FAILED";
payload: import("@nteract/actions/lib/utils").MaybeHasContent & {
id?: string | undefined;
} & {
error: Error;
code?: string | undefined;
};
error: true;
} | import("@nteract/actions").CommMessageAction | null>;