Skip to content

Instantly share code, notes, and snippets.

@s-panferov
Last active August 29, 2015 14: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 s-panferov/74fbfc6ae6818e189b85 to your computer and use it in GitHub Desktop.
Save s-panferov/74fbfc6ae6818e189b85 to your computer and use it in GitHub Desktop.
export interface ModelState<Model> {
model: opty.Option<Model>;
isProcessing: boolean;
isPending: boolean;
}
export interface ListModel<Ref, Model, Meta> {
models: immutable.Map<Ref, rx.BehaviorSubject<ModelState>>;
meta: opty.Option<Meta>;
}
export interface ListModelState<Ref, Model, Meta> {
listModel: ListModel<Ref, Model, Meta>;
pendingMeta: opty.Option<Meta>;
isProcessing: boolean;
isPending: boolean;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment