Skip to content

Commit

Permalink
chore: renames any-namespace module to any
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrjarrett committed Mar 8, 2024
1 parent a753d82 commit fe7f723
Show file tree
Hide file tree
Showing 35 changed files with 34 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/any-native.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type { native }

import type { _ } from "./any-namespace"
import type { _ } from "./any"

declare namespace native {
export {
Expand Down
2 changes: 0 additions & 2 deletions src/any-namespace.ts → src/any.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
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-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"
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-namespace"
import type { any } from "../any"
import { assert, expect } from "../test/exports"

namespace boolean { export const never: never = void 0 as never }
Expand Down
2 changes: 1 addition & 1 deletion src/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
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-namespace"
import type { any, _ } from "./any"
import { mut } from "./mutable/exports"

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-namespace"
import type { any } from "../any"
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-namespace"
import type { any } from "../any"
import type { Union } from "../union/exports";
import type { never } from "../semantic-never/exports";
import { nonempty } from "../empty";
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-namespace";
import type { any } from "../any";

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 @@ -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";
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-namespace"
import type { any } from "../any"

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-namespace";
import type { any } from "../any";

/**
* @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-namespace"
export type { any } from "./any"
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/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-namespace"
import type { any } from "../any"
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 @@ -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"

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-namespace"
import type { any } from "../any"
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-namespace"
import type { any } from "../any"
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-namespace"
import type { any } from "../any"

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-namespace"
import type { any, _ } from "../any"
import { pathsof } from "../paths/paths"

type list<type extends mut.array = mut.array> = type
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-namespace"
import type { any } from "../any"
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-namespace"
import type { any } from "../any"
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-namespace"
import type { any } from "../any"

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-namespace"
import type { any } from "../any"
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-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"
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-namespace"
import type { any } from "../any"
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-namespace"
import type { any } from "./any"
import type { never } from "./semantic-never/exports"

import type { to } from "./to"
Expand Down
2 changes: 1 addition & 1 deletion src/string/char.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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-namespace"
import type { any } from "../any"

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 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"
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-namespace"
import { type any } from "../any"
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-namespace"
import type { any } from "../any"
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-namespace"
import type { any } from "./any"

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-namespace"
import type { any } from "../any"
import type { empty, 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
@@ -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"

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-namespace"
import type { any } from "../any"

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

Expand Down

0 comments on commit fe7f723

Please sign in to comment.