Created
April 8, 2021 16:42
-
-
Save robinheinze/d84816ad32985a7c6b4832db9ad91adb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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