Skip to content

Instantly share code, notes, and snippets.

@ellisonbg
Last active June 25, 2017 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellisonbg/238d5576e3b7d5def4752475d54d7876 to your computer and use it in GitHub Desktop.
Save ellisonbg/238d5576e3b7d5def4752475d54d7876 to your computer and use it in GitHub Desktop.
Notes on a notebook model that is flattened and normalized
interface ICellModel {
type: string;
inputAreaId: string;
outputAreaId: string;
}
interface IInputAreaModel {
source: string;
}
interface IOutputAreaModel {
mimeBundleIds: string[];
}
interface IMimeBundle { }
interface IOutputStore {
mimeBudlesById: { [id: string]: IMimeBundle };
}
interface INotebookStore extends IOutputStore {
cells: string[];
cellsById: { [id: string]: ICellModel };
inputAreaModelsById: { [id: string]: IInputAreaModel }
outputAreaModelsById: { [id: string]: IOutputAreaModel };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment