Skip to content

Commit

Permalink
refactor(hdom): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 6, 2020
1 parent 1746889 commit e95ff1e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/hdom/src/default.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { HDOMImplementation } from "./api";
import { diffTree } from "./diff";
import {
createElement,
Expand All @@ -12,7 +13,6 @@ import {
setContent,
} from "./dom";
import { normalizeTree } from "./normalize";
import type { HDOMImplementation } from "./api";

/**
* Default target implementation to manipulate browser DOM.
Expand Down
3 changes: 1 addition & 2 deletions packages/hdom/src/diff.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SEMAPHORE } from "@thi.ng/api";
import type { IObjectOf } from "@thi.ng/api";
import { IObjectOf, SEMAPHORE } from "@thi.ng/api";
import { diffArray, DiffMode, diffObject } from "@thi.ng/diff";
import {
equiv as _equiv,
Expand Down
3 changes: 1 addition & 2 deletions packages/hdom/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { NULL_LOGGER } from "@thi.ng/api";
import type { ILogger } from "@thi.ng/api";
import { ILogger, NULL_LOGGER } from "@thi.ng/api";

export let LOGGER = NULL_LOGGER;

Expand Down
2 changes: 1 addition & 1 deletion packages/hdom/src/render-once.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { derefContext } from "@thi.ng/hiccup";
import type { HDOMImplementation, HDOMOpts } from "./api";
import { DEFAULT_IMPL } from "./default";
import { resolveRoot } from "./utils";
import type { HDOMImplementation, HDOMOpts } from "./api";

/**
* One-off hdom tree conversion & target DOM application. Takes same
Expand Down
2 changes: 1 addition & 1 deletion packages/hdom/src/start.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { derefContext } from "@thi.ng/hiccup";
import type { HDOMImplementation, HDOMOpts } from "./api";
import { DEFAULT_IMPL } from "./default";
import { resolveRoot } from "./utils";
import type { HDOMImplementation, HDOMOpts } from "./api";

/**
* Takes an hiccup tree (array, function or component object w/ life
Expand Down

0 comments on commit e95ff1e

Please sign in to comment.