Commit ce329cce authored by Jehun Seem(심제훈)'s avatar Jehun Seem(심제훈) Committed by Kristian Heruc

Fix with-mobx-state-tree-typescript modules export (#6704)

* Update libraries

* Fix for export modules for type
parent 12cbb934
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
}, },
"dependencies": { "dependencies": {
"@zeit/next-typescript": "1.1.0", "@zeit/next-typescript": "1.1.0",
"mobx": "5.0.5", "mobx": "^5.9.0",
"mobx-react": "5.2.5", "mobx-react": "^5.4.3",
"mobx-state-tree": "3.2.3", "mobx-state-tree": "^3.11.0",
"next": "latest", "next": "latest",
"react": "^16.7.0", "react": "^16.7.0",
"react-dom": "^16.7.0", "react-dom": "^16.7.0",
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"devDependencies": { "devDependencies": {
"@types/next": "^6.1.4", "@types/next": "^6.1.4",
"@types/react": "^16.4.12", "@types/react": "^16.4.12",
"@babel/plugin-proposal-decorators": "^7.1.2", "@babel/plugin-proposal-decorators": "^7.3.0",
"tslint": "^5.9.1", "tslint": "^5.9.1",
"tslint-config-standard": "^7.0.0", "tslint-config-standard": "^7.0.0",
"tslint-loader": "^3.5.3", "tslint-loader": "^3.5.3",
......
...@@ -29,11 +29,11 @@ const Store = types ...@@ -29,11 +29,11 @@ const Store = types
return { start, stop, update }; return { start, stop, update };
}); });
type IStore = Instance<typeof Store>; export type IStore = Instance<typeof Store>;
type IStoreSnapshotIn = SnapshotIn<typeof Store>; export type IStoreSnapshotIn = SnapshotIn<typeof Store>;
type IStoreSnapshotOut = SnapshotOut<typeof Store>; export type IStoreSnapshotOut = SnapshotOut<typeof Store>;
const initializeStore = (isServer, snapshot = null) => { export const initializeStore = (isServer, snapshot = null) => {
if (isServer) { if (isServer) {
store = Store.create({ foo:6, lastUpdate: Date.now() }); store = Store.create({ foo:6, lastUpdate: Date.now() });
} }
...@@ -45,5 +45,3 @@ const initializeStore = (isServer, snapshot = null) => { ...@@ -45,5 +45,3 @@ const initializeStore = (isServer, snapshot = null) => {
} }
return store; return store;
}; };
export { initializeStore, IStore, IStoreSnapshotIn, IStoreSnapshotOut };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment