Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
fix(types): getRoot types fixed (#340 by @nirre7)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
nirre7 committed May 21, 2020
1 parent 4abb814 commit 2e94b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boilerplate/app/models/extensions/with-root-store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRoot, IStateTreeNode } from "mobx-state-tree"
import { RootStore } from "../root-store"
import { RootStoreModel } from "../root-store"

/**
* Adds a rootStore property to the node for a convenient
Expand All @@ -11,7 +11,7 @@ export const withRootStore = (self: IStateTreeNode) => ({
* The root store.
*/
get rootStore() {
return getRoot<RootStore>(self)
return getRoot<typeof RootStoreModel>(self)
},
},
})

0 comments on commit 2e94b62

Please sign in to comment.