Skip to content

Commit

Permalink
chore: import from "any/exports.ts" instead of "any/any.ts" internally
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrjarrett committed Mar 19, 2024
1 parent e9e29e5 commit 923fc14
Show file tree
Hide file tree
Showing 39 changed files with 40 additions and 38 deletions.
2 changes: 2 additions & 0 deletions src/any/exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export type { any } from "./any"
export { ANY_TS_VERSION } from "./any"
2 changes: 1 addition & 1 deletion src/associative/associative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export {
size$,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import { assert, describe, expect } from "../test/exports"
import type { TypeError } from "../err/exports"
import type { Universal } from "../universal/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/boolean/boolean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {
boolean,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { _ } from "../util"
import { assert, expect } from "../test/exports"

Expand Down
2 changes: 1 addition & 1 deletion src/check/check.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { assert } from "../test/exports"
import { describe, expect } from "../test/exports"
import type { mut } from "../mutable/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/check/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type {
Signatures,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { _ } from "../util"
import type { Kind } from "../kind/exports"
import type { never } from "../semantic-never/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/empty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { any } from "./any/any"
import type { any } from "./any/exports"
import type { _ } from "./util"

export {
Expand Down
2 changes: 1 addition & 1 deletion src/err/catch.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, assert } from "../test/exports"
import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { nonempty } from "../empty"

import type { Catch } from "./catch"
Expand Down
2 changes: 1 addition & 1 deletion src/err/catch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type { Catch }

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { Union } from "../union/exports";
import type { never } from "../semantic-never/exports";

Expand Down
2 changes: 1 addition & 1 deletion src/err/enforce.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { enforce as _, internal } from "./enforce"
import type { any } from "../any/any";
import type { any } from "../any/exports";

import type { TypeError } from "./err";
import { assert, expect } from "../test/exports";
Expand Down
2 changes: 1 addition & 1 deletion src/err/enforce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type {
/** @internal - only exported for testing purposes */
export type { impl as internal }

import type { any } from "../any/any";
import type { any } from "../any/exports";
import type { number } from "../number/number"

import type { Fn } from "../function/exports";
Expand Down
2 changes: 1 addition & 1 deletion src/err/err.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export {
Msg,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"

declare namespace URI {
const TypeError: unique symbol
Expand Down
2 changes: 1 addition & 1 deletion src/evaluate/evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {
evaluate,
}

import type { any } from "../any/any";
import type { any } from "../any/exports";

/**
* @example
Expand Down
2 changes: 1 addition & 1 deletion src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export {
expectToFail
} from "./test/exports"

export type { any } from "./any/any"
export type { any } from "./any/exports"
export type { some } from "./some"
export type { } from "./associative/exports"
export type { boolean } from "./boolean/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/kind/bind.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Kind } from "./kind"
import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { _ } from "../util"

declare namespace Bind {
Expand Down
2 changes: 1 addition & 1 deletion src/kind/extensible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export {
type Intersectable,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { Kind } from "./kind"
import type { variance } from "../variance/variance"

Expand Down
2 changes: 1 addition & 1 deletion src/kind/kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export {
}

import type { never } from "../semantic-never/exports"
import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { _ } from "../util"
import type { Err } from "../err/exports"
import type { Union } from "../union/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/lens/monocle.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type { named }

import type { some } from "../some"
import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { nonempty } from "../empty"
import type { never } from "../exports"

Expand Down
2 changes: 1 addition & 1 deletion src/lens/tree.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { any } from "../any/any"
import type { any } from "../any/exports"
import { never } from "../semantic-never/exports";
import { empty, nonempty } from "../empty"
import { traversable } from "../traversable/traversable"
Expand Down
2 changes: 1 addition & 1 deletion src/mutable/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export {
mutable,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"

type mutable<type>
= type extends any.primitive ? type
Expand Down
2 changes: 1 addition & 1 deletion src/mutable/mutable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type {
two,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { _ } from "../util"
import { pathsof } from "../paths/paths"

Expand Down
2 changes: 1 addition & 1 deletion src/number/bigint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type {
bigint,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import { never } from "../semantic-never/exports"

declare namespace bigint {
Expand Down
2 changes: 1 addition & 1 deletion src/number/integer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {
Int as int,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { Fn } from "../function/exports";
import { Err } from "../exports"
import { $$, newtype } from "./shared"
Expand Down
2 changes: 1 addition & 1 deletion src/number/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type {
Whitespace,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"

type isNumber<x> = [x] extends [number] ? true : false
type isNegative<x> = [x] extends [any.showable] ? [`${x}`] extends [`-${number}`] ? true : false : false
Expand Down
2 changes: 1 addition & 1 deletion src/paths/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {
type pathsof,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import { assert, expect } from "../test/exports"
import type { never } from "../semantic-never/exports"

Expand Down
2 changes: 1 addition & 1 deletion src/show/associative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export {
tag$,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import { assert, describe, expect } from "../test/exports"
import type { enforce } from "../err/enforce"
import type { TypeError } from "../err/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/show/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export {
Show
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import { assert, describe, expect } from "../test/exports"
import { empty, nonempty } from "../empty"
import { never } from "../semantic-never/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/some.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type { some }

import type { any } from "./any/any"
import type { any } from "./any/exports"
import type { never } from "./semantic-never/exports"

import type { to } from "./to"
Expand Down
2 changes: 1 addition & 1 deletion src/string/_internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type {
snake,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { boolean } from "../boolean/boolean"
import type { empty, nonempty } from "../empty"
import type { never } from "../semantic-never/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/string/fn.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Kind } from "../kind/exports"
import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { string } from "./string"
import type { char } from "./char"
import type { assert, expect } from "../test/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/string/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {
delimitedCase,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { join } from "./_internal"

type fromList<keys extends any.showables> = never | ({ [k in `${keys[number]}`]: k })
Expand Down
2 changes: 1 addition & 1 deletion src/string/kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type {
interpret2,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"

interface Fn1<type = unknown> { [-1]: unknown, [0]: type }
interface Fn2<left = unknown, right = unknown> { [-1]: any.showable, [0]: left, [1]: right, }
Expand Down
2 changes: 1 addition & 1 deletion src/string/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type {
string,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { nonempty } from "../empty"
import type { Kind } from "../kind/exports"
import type { check } from "../check/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/test/test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert, describe, expect, expectToFail } from "./test"
import * as Sym from "./symbol"
import { type any } from "../any/any"
import { type any } from "../any/exports"
import type { Case, TypeError } from "../err/exports"

namespace __Spec__ {
Expand Down
2 changes: 1 addition & 1 deletion src/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export {
expectToFail,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { Case, TypeError } from "../err/exports"

import * as Sym from "./symbol"
Expand Down
2 changes: 1 addition & 1 deletion src/to.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { to }

import type { any } from "./any/any"
import type { any } from "./any/exports"

namespace to { export const never: never = void 0 as never }
declare namespace to {
Expand Down
2 changes: 1 addition & 1 deletion src/traversable/traversable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export {
traversal,
}

import type { any } from "../any/any"
import type { any } from "../any/exports"
import type { empty, nonempty } from "../empty"

import type { never } from "../semantic-never/exports"
Expand Down
2 changes: 1 addition & 1 deletion src/tree/tree.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Tree, nonempty as nonemptyPath } from "./tree"

import type { any } from "../any/any"
import type { any } from "../any/exports"
import { type empty, type nonempty } from "../empty"
import { type never } from "../semantic-never/exports"

Expand Down
2 changes: 1 addition & 1 deletion src/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type {
nonempty,
}

import { type any } from "../any/any"
import { type any } from "../any/exports"
import { type empty } from "../empty"
import { type never } from "../semantic-never/exports"

Expand Down
2 changes: 1 addition & 1 deletion src/universal/universal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {
Universal
}

import type { any } from "../any/any"
import type { any } from "../any/exports"

type parseNumeric<type> = type extends `${infer x extends number}` ? x : never

Expand Down

0 comments on commit 923fc14

Please sign in to comment.