diff --git a/src/any-native.ts b/src/any-native.ts index d1bdd7a..7f32b05 100644 --- a/src/any-native.ts +++ b/src/any-native.ts @@ -1,6 +1,6 @@ export type { native } -import type { _ } from "./any-namespace" +import type { _ } from "./any" declare namespace native { export { diff --git a/src/any-namespace.ts b/src/any.ts similarity index 98% rename from src/any-namespace.ts rename to src/any.ts index 3f4cda2..d3e6ac3 100644 --- a/src/any-namespace.ts +++ b/src/any.ts @@ -1,8 +1,6 @@ export type { any_ as any, _ } export type { ANY_TS_VERSION } from "./version" -// import type { any } from "./__any.ts__" -// import type { some } from "./__any.ts__" import type { some } from "./some" import type { to } from "./to" import type { pathsof } from "./paths/paths" diff --git a/src/associative/associative.ts b/src/associative/associative.ts index 6bd671b..a52774b 100644 --- a/src/associative/associative.ts +++ b/src/associative/associative.ts @@ -3,7 +3,7 @@ export { size$, } -import type { any } from "../any-namespace" +import type { any } from "../any" import { assert, describe, expect } from "../test/exports" import type { TypeError } from "../err/exports" import type { Universal } from "../universal/exports" diff --git a/src/boolean/boolean.ts b/src/boolean/boolean.ts index 2b48a8f..eb2f7a0 100644 --- a/src/boolean/boolean.ts +++ b/src/boolean/boolean.ts @@ -2,7 +2,7 @@ export { boolean, } -import type { any } from "../any-namespace" +import type { any } from "../any" import { assert, expect } from "../test/exports" namespace boolean { export const never: never = void 0 as never } diff --git a/src/cache/cache.ts b/src/cache/cache.ts index fdffd8d..cbcf5ba 100644 --- a/src/cache/cache.ts +++ b/src/cache/cache.ts @@ -2,7 +2,7 @@ export { cache, } -import type { _ } from "../any-namespace" +import type { _ } from "../any" namespace cache { export const never: never = void 0 as never } declare namespace cache { diff --git a/src/empty.ts b/src/empty.ts index 072f109..e9c4915 100644 --- a/src/empty.ts +++ b/src/empty.ts @@ -1,4 +1,4 @@ -import type { any, _ } from "./any-namespace" +import type { any, _ } from "./any" import { mut } from "./mutable/exports" export { diff --git a/src/err/catch.spec.ts b/src/err/catch.spec.ts index 87c5c26..ee2471e 100644 --- a/src/err/catch.spec.ts +++ b/src/err/catch.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, assert } from "../test/exports" -import type { any } from "../any-namespace" +import type { any } from "../any" import type { nonempty } from "../empty" import type { Catch } from "./catch" diff --git a/src/err/catch.ts b/src/err/catch.ts index 3e08d49..1b06bbe 100644 --- a/src/err/catch.ts +++ b/src/err/catch.ts @@ -1,6 +1,6 @@ export type { Catch } -import type { any } from "../any-namespace" +import type { any } from "../any" import type { Union } from "../union/exports"; import type { never } from "../semantic-never/exports"; import { nonempty } from "../empty"; diff --git a/src/err/enforce.spec.ts b/src/err/enforce.spec.ts index eeb0331..20fc1fd 100644 --- a/src/err/enforce.spec.ts +++ b/src/err/enforce.spec.ts @@ -1,5 +1,5 @@ import { enforce as _, internal } from "./enforce" -import type { any } from "../any-namespace"; +import type { any } from "../any"; import type { TypeError } from "./err"; import { assert, expect } from "../test/exports"; diff --git a/src/err/enforce.ts b/src/err/enforce.ts index 558c866..672ef42 100644 --- a/src/err/enforce.ts +++ b/src/err/enforce.ts @@ -6,7 +6,7 @@ export type { /** @internal - only exported for testing purposes */ export type { impl as internal } -import type { any } from "../any-namespace"; +import type { any } from "../any"; import type { number } from "../number/number" import type { Fn } from "../function/exports"; diff --git a/src/err/err.ts b/src/err/err.ts index cefb305..50192d1 100644 --- a/src/err/err.ts +++ b/src/err/err.ts @@ -16,7 +16,7 @@ export { Msg, } -import type { any } from "../any-namespace" +import type { any } from "../any" declare namespace URI { const TypeError: unique symbol diff --git a/src/evaluate/evaluate.ts b/src/evaluate/evaluate.ts index 3304f8a..eb8f731 100644 --- a/src/evaluate/evaluate.ts +++ b/src/evaluate/evaluate.ts @@ -2,7 +2,7 @@ export { evaluate, } -import type { any } from "../any-namespace"; +import type { any } from "../any"; /** * @example diff --git a/src/exports.ts b/src/exports.ts index ef835cd..774db74 100644 --- a/src/exports.ts +++ b/src/exports.ts @@ -7,7 +7,7 @@ export { expectToFail } from "./test/exports" -export type { any } from "./any-namespace" +export type { any } from "./any" export type { some } from "./some" export type { } from "./associative/exports" export type { boolean } from "./boolean/exports" diff --git a/src/kind/extensible.ts b/src/kind/extensible.ts index ca83b4c..d223610 100644 --- a/src/kind/extensible.ts +++ b/src/kind/extensible.ts @@ -8,7 +8,7 @@ export { type Intersectable, } -import type { any } from "../any-namespace" +import type { any } from "../any" import type { Kind } from "./kind" import type { variance } from "../variance/variance" diff --git a/src/kind/kind.ts b/src/kind/kind.ts index 3de4c5d..bb16662 100644 --- a/src/kind/kind.ts +++ b/src/kind/kind.ts @@ -3,7 +3,7 @@ export { type Kind as kind__internal } -import type { any, _ } from "../any-namespace" +import type { any, _ } from "../any" import { Err } from "../err/exports" import { Union } from "../union/exports" diff --git a/src/lens/monocle.ts b/src/lens/monocle.ts index 22caaad..03d2a01 100644 --- a/src/lens/monocle.ts +++ b/src/lens/monocle.ts @@ -1,7 +1,7 @@ export type { named } import type { some } from "../some" -import type { any } from "../any-namespace" +import type { any } from "../any" import type { nonempty } from "../empty" import type { never } from "../exports" diff --git a/src/lens/tree.ts b/src/lens/tree.ts index f44b0fe..10b324e 100644 --- a/src/lens/tree.ts +++ b/src/lens/tree.ts @@ -1,4 +1,4 @@ -import type { any } from "../any-namespace" +import type { any } from "../any" import { never } from "../semantic-never/exports"; import { empty, nonempty } from "../empty" import { traversable } from "../traversable/traversable" diff --git a/src/mutable/exports.ts b/src/mutable/exports.ts index 17304b2..aaaf6b3 100644 --- a/src/mutable/exports.ts +++ b/src/mutable/exports.ts @@ -3,7 +3,7 @@ export { mutable, } -import type { any } from "../any-namespace" +import type { any } from "../any" type mutable = type extends any.primitive ? type diff --git a/src/mutable/mutable.ts b/src/mutable/mutable.ts index 80f4f68..250a34e 100644 --- a/src/mutable/mutable.ts +++ b/src/mutable/mutable.ts @@ -37,7 +37,7 @@ export type { two, } -import type { any, _ } from "../any-namespace" +import type { any, _ } from "../any" import { pathsof } from "../paths/paths" type list = type diff --git a/src/number/bigint.ts b/src/number/bigint.ts index 8d83a93..a19fa42 100644 --- a/src/number/bigint.ts +++ b/src/number/bigint.ts @@ -2,7 +2,7 @@ export type { bigint, } -import type { any } from "../any-namespace" +import type { any } from "../any" import { never } from "../semantic-never/exports" declare namespace bigint { diff --git a/src/number/integer.ts b/src/number/integer.ts index 6a0c356..a5af135 100644 --- a/src/number/integer.ts +++ b/src/number/integer.ts @@ -2,7 +2,7 @@ export { Int as int, } -import type { any } from "../any-namespace" +import type { any } from "../any" import type { Fn } from "../function/exports"; import { Err } from "../exports" import { $$, newtype } from "./shared" diff --git a/src/number/shared.ts b/src/number/shared.ts index d6ed8e6..b05eeb4 100644 --- a/src/number/shared.ts +++ b/src/number/shared.ts @@ -11,7 +11,7 @@ export type { Whitespace, } -import type { any } from "../any-namespace" +import type { any } from "../any" type isNumber = [x] extends [number] ? true : false type isNegative = [x] extends [any.showable] ? [`${x}`] extends [`-${number}`] ? true : false : false diff --git a/src/paths/paths.ts b/src/paths/paths.ts index b844bb0..062fa81 100644 --- a/src/paths/paths.ts +++ b/src/paths/paths.ts @@ -2,7 +2,7 @@ export { type pathsof, } -import type { any } from "../any-namespace" +import type { any } from "../any" import { assert, expect } from "../test/exports" import type { never } from "../semantic-never/exports" diff --git a/src/show/associative.ts b/src/show/associative.ts index 8a01a89..1a6e2e1 100644 --- a/src/show/associative.ts +++ b/src/show/associative.ts @@ -9,7 +9,7 @@ export { tag$, } -import type { any } from "../any-namespace" +import type { any } from "../any" import { assert, describe, expect } from "../test/exports" import type { enforce } from "../err/enforce" import type { TypeError } from "../err/exports" diff --git a/src/show/show.ts b/src/show/show.ts index bb814bb..58ad547 100644 --- a/src/show/show.ts +++ b/src/show/show.ts @@ -13,7 +13,7 @@ export { Show } -import type { any } from "../any-namespace" +import type { any } from "../any" import { assert, describe, expect } from "../test/exports" import { empty, nonempty } from "../empty" import { never } from "../semantic-never/exports" diff --git a/src/some.ts b/src/some.ts index 598dd3d..b93631a 100644 --- a/src/some.ts +++ b/src/some.ts @@ -1,6 +1,6 @@ export type { some } -import type { any } from "./any-namespace" +import type { any } from "./any" import type { never } from "./semantic-never/exports" import type { to } from "./to" diff --git a/src/string/char.ts b/src/string/char.ts index d973993..f956a89 100644 --- a/src/string/char.ts +++ b/src/string/char.ts @@ -3,7 +3,7 @@ export { chars, } -import type { _ } from "../any-namespace" +import type { _ } from "../any" import type { empty, nonempty } from "../empty" import type { boolean } from "../boolean/exports" import type { assert, expect } from "../test/exports" diff --git a/src/string/kind.ts b/src/string/kind.ts index bc2658b..df74ddc 100644 --- a/src/string/kind.ts +++ b/src/string/kind.ts @@ -5,7 +5,7 @@ export type { interpret2, } -import type { any } from "../any-namespace" +import type { any } from "../any" interface Fn1 { [-1]: unknown, [0]: type } interface Fn2 { [-1]: any.showable, [0]: left, [1]: right, } diff --git a/src/string/string.ts b/src/string/string.ts index 31f918e..06cff2c 100644 --- a/src/string/string.ts +++ b/src/string/string.ts @@ -2,7 +2,7 @@ export type { String as string, } -import type { any } from "../any-namespace" +import type { any } from "../any" import type { boolean } from "../boolean/boolean" import type { assert, expect } from "../test/exports" import type { empty, nonempty } from "../empty" diff --git a/src/test/test.spec.ts b/src/test/test.spec.ts index 43727b8..3e86999 100644 --- a/src/test/test.spec.ts +++ b/src/test/test.spec.ts @@ -1,6 +1,6 @@ import { assert, describe, expect, expectToFail } from "./test" import * as Sym from "./symbol" -import { type any } from "../any-namespace" +import { type any } from "../any" import type { Case, TypeError } from "../err/exports" namespace __Spec__ { diff --git a/src/test/test.ts b/src/test/test.ts index fb23dd4..c84c68e 100644 --- a/src/test/test.ts +++ b/src/test/test.ts @@ -5,7 +5,7 @@ export { expectToFail, } -import type { any } from "../any-namespace" +import type { any } from "../any" import type { Case, TypeError } from "../err/exports" import * as Sym from "./symbol" diff --git a/src/to.ts b/src/to.ts index e25e3e8..aa7bc24 100644 --- a/src/to.ts +++ b/src/to.ts @@ -1,6 +1,6 @@ export { to } -import type { any } from "./any-namespace" +import type { any } from "./any" namespace to { export const never: never = void 0 as never } declare namespace to { diff --git a/src/traversable/traversable.ts b/src/traversable/traversable.ts index f45520f..849119d 100644 --- a/src/traversable/traversable.ts +++ b/src/traversable/traversable.ts @@ -3,7 +3,7 @@ export { traversal, } -import type { any } from "../any-namespace" +import type { any } from "../any" import type { empty, nonempty } from "../empty" import type { never } from "../semantic-never/exports" diff --git a/src/tree/tree.ts b/src/tree/tree.ts index 4173450..b56a26c 100644 --- a/src/tree/tree.ts +++ b/src/tree/tree.ts @@ -1,4 +1,4 @@ -import { type any } from "../any-namespace" +import { type any } from "../any" import { type empty, type nonempty } from "../empty" import { type never } from "../semantic-never/exports" diff --git a/src/universal/universal.ts b/src/universal/universal.ts index d9cc87f..54bd847 100644 --- a/src/universal/universal.ts +++ b/src/universal/universal.ts @@ -2,7 +2,7 @@ export { Universal } -import type { any } from "../any-namespace" +import type { any } from "../any" type parseNumeric = type extends `${infer x extends number}` ? x : never