Skip to content

Instantly share code, notes, and snippets.

@robinheinze
Created April 8, 2021 16:42
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 robinheinze/d84816ad32985a7c6b4832db9ad91adb to your computer and use it in GitHub Desktop.
Save robinheinze/d84816ad32985a7c6b4832db9ad91adb to your computer and use it in GitHub Desktop.
import { Instance, SnapshotOut, types } from "mobx-state-tree"
import { QuestionStore, QuestionStoreModel } from "../question-store/question-store"
/**
* A RootStore model.
*/
// prettier-ignore
export const RootStoreModel = types.model("RootStore").props({
questionStore: types.optional(QuestionStoreModel, {} as QuestionStore)
})
/**
* The RootStore instance.
*/
export interface RootStore extends Instance<typeof RootStoreModel> {}
/**
* The data of a RootStore.
*/
export interface RootStoreSnapshot extends SnapshotOut<typeof RootStoreModel> {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment