Skip to content

Commit

Permalink
refactor(strings): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 24, 2020
1 parent e8f789a commit 3937dc6
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/strings/src/case.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stringer } from "./api";
import type { Stringer } from "./api";

/**
* Uppercase string formatter.
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/center.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import { repeat } from "./repeat";
import { truncate } from "./truncate";
import type { Stringer } from "./api";

/**
* Returns stringer which pads given input with `ch` (default: space) on
Expand Down
3 changes: 1 addition & 2 deletions packages/strings/src/float.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import { padLeft } from "./pad-left";

import type { Stringer } from "./api";

/**
* Returns {@link Stringer} which formats numbers to given precision.
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/hollerith.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stringer } from "./api";
import type { Stringer } from "./api";

/**
* Formats given value `x` as Fortran style Hollerith string.
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./api";
export type * from "./api";
export * from "./case";
export * from "./center";
export * from "./float";
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/pad-left.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import { repeat } from "./repeat";
import type { Stringer } from "./api";

/**
* @param n - target length
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/pad-right.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import { repeat } from "./repeat";
import type { Stringer } from "./api";

/**
* @param n - target length
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/percent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stringer } from "./api";
import type { Stringer } from "./api";

/**
* Returns {@link Stringer} which formats given fractions as percentage (e.g.
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/radix.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import { repeat } from "./repeat";
import type { Stringer } from "./api";

/**
* Returns a {@link Stringer} which formats given numbers to `radix`, `len`
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/slugify.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stringer } from "./api";
import type { Stringer } from "./api";

const src = "àáäâãåèéëêìíïîòóöôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;";
const dest = "aaaaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------";
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/truncate-left.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import type { Stringer } from "./api";

export const truncateLeft: (
n: number,
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/truncate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import type { Stringer } from "./api";

export const truncate: (
n: number,
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/units.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import type { Stringer } from "./api";

type UnitDefs = [number, string, number?][];

Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/wrap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { memoizeJ } from "@thi.ng/memoize";
import { Stringer } from "./api";
import type { Stringer } from "./api";

/**
* Returns a {@link Stringer} which wrap inputs with given `pad` string on
Expand Down

0 comments on commit 3937dc6

Please sign in to comment.