From 22cf5c6cd10d43d239855664e37b15392e5f1395 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Sun, 6 Sep 2020 01:45:38 +0100 Subject: [PATCH] refactor(router): update imports --- packages/router/src/basic.ts | 12 +++++++++--- packages/router/src/history.ts | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/router/src/basic.ts b/packages/router/src/basic.ts index 7e383698fc..895493794d 100644 --- a/packages/router/src/basic.ts +++ b/packages/router/src/basic.ts @@ -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 { diff --git a/packages/router/src/history.ts b/packages/router/src/history.ts index ad498dff8e..a0c1d54acb 100644 --- a/packages/router/src/history.ts +++ b/packages/router/src/history.ts @@ -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;