Skip to content

Commit

Permalink
refactor(hiccup-css): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 24, 2020
1 parent a79cdcd commit 03712f0
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FnAny, IObjectOf } from "@thi.ng/api";
import type { FnAny, IObjectOf } from "@thi.ng/api";

/**
* Function type used by `at_xxx()` functions or any
Expand Down
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/comment.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RuleFn } from "./api";
import { indent } from "./impl";
import type { RuleFn } from "./api";

export const comment = (body: string, force = false): RuleFn => (acc, opts) => {
const space = indent(opts);
Expand Down
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/conditional.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isString } from "@thi.ng/checks";
import { Conditional, CSSOpts, RuleFn } from "./api";
import { expand, indent } from "./impl";
import type { Conditional, CSSOpts, RuleFn } from "./api";

export const conditional = (
type: string,
Expand Down
4 changes: 2 additions & 2 deletions packages/hiccup-css/src/impl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { FnAny } from "@thi.ng/api";
import {
isArray,
isFunction,
Expand All @@ -17,7 +16,8 @@ import {
transduce,
Transducer
} from "@thi.ng/transducers";
import { CSSOpts, RuleFn } from "./api";
import type { FnAny } from "@thi.ng/api";
import type { CSSOpts, RuleFn } from "./api";

const EMPTY = new Set<string>();

Expand Down
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/import.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RuleFn } from "./api";
import type { RuleFn } from "./api";

export const at_import = (url: string, ...queries: string[]): RuleFn => (
acc,
Expand Down
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/keyframes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CSSOpts, RuleFn } from "./api";
import { formatDecls, indent } from "./impl";
import { percent } from "./units";
import type { CSSOpts, RuleFn } from "./api";

/**
* Rule function for `@keyframes`. If a single declaration object is given,
Expand Down
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/media.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Conditional, RuleFn } from "./api";
import { conditional } from "./conditional";
import type { Conditional, RuleFn } from "./api";

export const at_media = (cond: Conditional, rules: any[]): RuleFn =>
conditional("@media", cond, rules);
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/namespace.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RuleFn } from "./api";
import type { RuleFn } from "./api";

export function at_namespace(url: string): RuleFn;
export function at_namespace(prefix: string, url: string): RuleFn;
Expand Down
2 changes: 1 addition & 1 deletion packages/hiccup-css/src/supports.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Conditional, RuleFn } from "./api";
import { conditional } from "./conditional";
import type { Conditional, RuleFn } from "./api";

export const at_supports = (cond: Conditional, rules: any[]): RuleFn =>
conditional("@supports", cond, rules);

0 comments on commit 03712f0

Please sign in to comment.