Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
38 lines (34 sloc) 959 Bytes
import * as Immutable from "immutable";
export interface EmptyModelRecordProps {
type: "unknown";
export const makeEmptyModel = Immutable.Record<EmptyModelRecordProps>({
type: "unknown"
export type EmptyModelRecord = Immutable.RecordOf<EmptyModelRecordProps>;
export type NotebookTypes = "unknown" | "directory" | "notebook" | "file";
export interface DummyContentRecordProps {
type: "dummy";
assumedType: NotebookTypes;
mimetype?: string | null;
lastSaved: null;
filepath: string;
model: EmptyModelRecord;
saving: boolean;
loading: boolean;
error?: object | null;
export const makeDummyContentRecord = Immutable.Record<DummyContentRecordProps>(
type: "dummy",
mimetype: null,
assumedType: "unknown",
lastSaved: null,
filepath: "",
model: makeEmptyModel(),
saving: false,
loading: false,
error: null
export type DummyContentRecord = Immutable.RecordOf<DummyContentRecordProps>;