Skip to content

Commit

Permalink
Merge 0464e98 into d8bbc9b
Browse files Browse the repository at this point in the history
  • Loading branch information
nrakic90 committed Aug 21, 2018
2 parents d8bbc9b + 0464e98 commit a7b7b50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -6,3 +6,5 @@ dist
docs/dist
node_modules
npm-debug.log

.idea
17 changes: 4 additions & 13 deletions src/index.d.ts
Expand Up @@ -2,12 +2,11 @@ import {State} from "router5";
import {IComputedValue} from "mobx/lib/core/computedvalue";
import {Route, Router} from "router5/create-router";
import {Options} from "router5/core/navigation";
import {PluginFactory} from "router5/core/plugins";
import {Params} from "router5";

declare module "mobx-router5" {
import {PluginFactory} from "router5/core/plugins";
import {Params} from "router5";

class RouterStore {
export class RouterStore {
public router: Router;
public previousRoute: Route;
public transitionRoute: Route;
Expand All @@ -28,13 +27,5 @@ declare module "mobx-router5" {
public shouldUpdateNodeFactory: (nodeName: string) => IComputedValue<(toState: State, fromState?: State) => Boolean>;
}

function mobxPlugin(routerStore: RouterStore): PluginFactory;

namespace RouterStore {}
namespace mobxPlugin {}

export {
RouterStore,
mobxPlugin,
};
export function mobxPlugin(routerStore: RouterStore): PluginFactory;
}

0 comments on commit a7b7b50

Please sign in to comment.