Skip to content

Commit

Permalink
refactor(router): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 6, 2020
1 parent 74aa25a commit 22cf5c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions packages/router/src/basic.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import { assert, INotifyMixin } from "@thi.ng/api";
import {
assert,
Event,
INotify,
INotifyMixin,
IObjectOf,
Listener,
} from "@thi.ng/api";
import { isString } from "@thi.ng/checks";
import { equiv } from "@thi.ng/equiv";
import { illegalArgs, illegalArity } from "@thi.ng/errors";
import { EVENT_ROUTE_CHANGED } from "./constants";
import type { Event, INotify, IObjectOf, Listener } from "@thi.ng/api";
import type {
Route,
RouteMatch,
RouteParamValidator,
RouterConfig,
} from "./api";
import { EVENT_ROUTE_CHANGED } from "./constants";

@INotifyMixin
export class BasicRouter implements INotify {
Expand Down
4 changes: 2 additions & 2 deletions packages/router/src/history.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Fn } from "@thi.ng/api";
import { isString } from "@thi.ng/checks";
import { equiv } from "@thi.ng/equiv";
import { illegalArity } from "@thi.ng/errors";
import { BasicRouter } from "./basic";
import type { Fn } from "@thi.ng/api";
import type { HTMLRouterConfig, RouteMatch, RouterConfig } from "./api";
import { BasicRouter } from "./basic";

export class HTMLRouter extends BasicRouter {
protected currentPath!: string;
Expand Down

0 comments on commit 22cf5c6

Please sign in to comment.