Skip to content

Commit

Permalink
refactor(date): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 10, 2021
1 parent 6b102d0 commit 6d4be5a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions packages/date/src/datetime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { ICompare, ICopy, IEqualsDelta, IEquiv } from "@thi.ng/api";
import { isNumber, isString } from "@thi.ng/checks";
import { Z2, Z3, Z4 } from "@thi.ng/strings";
import { isNumber } from "@thi.ng/checks/is-number";
import { isString } from "@thi.ng/checks/is-string";
import { Z2, Z3, Z4 } from "@thi.ng/strings/pad-left";
import { DAY, HOUR, MaybeDate, MINUTE, Period, Precision, SECOND } from "./api";
import { defFormat } from "./format";
import { LOCALE } from "./i18n";
Expand Down
5 changes: 3 additions & 2 deletions packages/date/src/format.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { isFunction, isString } from "@thi.ng/checks";
import { Z2, Z3, Z4 } from "@thi.ng/strings";
import { isFunction } from "@thi.ng/checks/is-function";
import { isString } from "@thi.ng/checks/is-string";
import { Z2, Z3, Z4 } from "@thi.ng/strings/pad-left";
import { FormatFn, MaybeDate, MINUTE } from "./api";
import { LOCALE } from "./i18n";
import { ensureDate, weekInYear } from "./utils";
Expand Down
2 changes: 1 addition & 1 deletion packages/date/src/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn0 } from "@thi.ng/api";
import { isString } from "@thi.ng/checks";
import { isString } from "@thi.ng/checks/is-string";
import type { Locale, LocaleSpec, LocaleUnit, Precision } from "./api";
import { EN_SHORT } from "./i18n/en";

Expand Down
2 changes: 1 addition & 1 deletion packages/date/src/iterators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn } from "@thi.ng/api";
import { isString } from "@thi.ng/checks";
import { isString } from "@thi.ng/checks/is-string";
import type { EpochIterator, EpochIteratorConstructor, Precision } from "./api";
import { DateTime } from "./datetime";
import { floorQuarter, floorWeek } from "./round";
Expand Down
2 changes: 1 addition & 1 deletion packages/date/src/timecode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Z2 } from "@thi.ng/strings";
import { Z2 } from "@thi.ng/strings/pad-left";
import { DAY, HOUR, MINUTE, MONTH, SECOND, YEAR } from "./api";

/**
Expand Down
4 changes: 3 additions & 1 deletion packages/date/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { FnN2, FnN3 } from "@thi.ng/api";
import { implementsFunction, isNumber, isString } from "@thi.ng/checks";
import { implementsFunction } from "@thi.ng/checks/implements-function";
import { isNumber } from "@thi.ng/checks/is-number";
import { isString } from "@thi.ng/checks/is-string";
import {
DAYS_IN_MONTH,
DAYS_IN_MONTH_OFFSET,
Expand Down

0 comments on commit 6d4be5a

Please sign in to comment.