Skip to content

Commit

Permalink
refactor(color): update type-only imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 6, 2020
1 parent 094a575 commit 2808adf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/color/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Tuple } from "@thi.ng/api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
import { ColorMode } from "./constants";
import type { ColorMode } from "./constants";

export type Color = Vec;
export type ReadonlyColor = ReadonlyVec;
Expand Down
2 changes: 1 addition & 1 deletion packages/color/src/closest-hue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Hue } from "./constants";
import type { Hue } from "./constants";
import { ensureHue } from "./internal/ensure-hue";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/color/src/hue-rgba.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { clamp01 } from "@thi.ng/math";
import { setC4 } from "@thi.ng/vectors";
import type { Color } from "./api";
import { Hue } from "./constants";
import type { Hue } from "./constants";
import { ensureHue } from "./internal/ensure-hue";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/color/src/internal/acolor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IDeref } from "@thi.ng/api";
import { EPS } from "@thi.ng/math";
import { eqDelta4, stridedValues } from "@thi.ng/vectors";
import type { Color, IColor } from "../api";
import { ColorMode } from "../constants";
import type { ColorMode } from "../constants";

export abstract class AColor<T extends Color> implements IColor, IDeref<Color> {
buf: Color;
Expand Down
2 changes: 1 addition & 1 deletion packages/color/test/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import * as assert from "assert";
// import * as c from "../src/index";
// import * as c from "../src";

describe("color", () => {
it("tests pending");
Expand Down

0 comments on commit 2808adf

Please sign in to comment.