@pithos/core 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/arkhe/array/to-array.d.ts +1 -1
  3. package/dist/arkhe/async/parallel.js +1 -1
  4. package/dist/arkhe/async/retry.js +1 -1
  5. package/dist/arkhe/number/parsers/parse-float-def.d.ts +1 -1
  6. package/dist/arkhe/number/parsers/parse-float-def.js +1 -1
  7. package/dist/arkhe/number/parsers/parse-int-def.d.ts +1 -1
  8. package/dist/arkhe/object/defaults-deep.js +1 -1
  9. package/dist/arkhe/object/get.js +1 -1
  10. package/dist/arkhe/object/merge-with.js +1 -1
  11. package/dist/arkhe/object/set.js +2 -2
  12. package/dist/arkhe/string/pascal-case.js +1 -1
  13. package/dist/arkhe/test/console.js +1 -1
  14. package/dist/autocompletion.d.ts +702 -702
  15. package/dist/bridges/ensure.d.ts +2 -2
  16. package/dist/bridges/ensure.js +2 -2
  17. package/dist/bridges/ensureAsync.d.ts +2 -2
  18. package/dist/bridges/ensureAsync.js +2 -2
  19. package/dist/bridges/ensurePromise.d.ts +3 -3
  20. package/dist/bridges/ensurePromise.js +3 -3
  21. package/dist/kanon/core/parser.d.ts +1 -1
  22. package/dist/kanon/core/parser.js +1 -1
  23. package/dist/kanon/helpers/as-zod.d.ts +1 -1
  24. package/dist/kanon/helpers/as-zod.js +2 -2
  25. package/dist/kanon/helpers/as-zod.shim.d.ts +1 -1
  26. package/dist/kanon/helpers/as-zod.shim.js +3 -3
  27. package/dist/kanon/helpers/k.d.ts +42 -42
  28. package/dist/kanon/helpers/k.js +41 -41
  29. package/dist/kanon/index.d.ts +56 -56
  30. package/dist/kanon/index.js +46 -46
  31. package/dist/kanon/jit/builders/coerce.d.ts +2 -2
  32. package/dist/kanon/jit/builders/coerce.js +2 -2
  33. package/dist/kanon/jit/builders/composites/array.d.ts +2 -2
  34. package/dist/kanon/jit/builders/composites/array.js +2 -2
  35. package/dist/kanon/jit/builders/composites/object.d.ts +3 -3
  36. package/dist/kanon/jit/builders/composites/object.js +2 -2
  37. package/dist/kanon/jit/builders/operators/union.d.ts +1 -1
  38. package/dist/kanon/jit/builders/operators/union.js +3 -3
  39. package/dist/kanon/jit/builders/primitives/boolean.d.ts +2 -2
  40. package/dist/kanon/jit/builders/primitives/boolean.js +3 -3
  41. package/dist/kanon/jit/builders/primitives/number.d.ts +2 -2
  42. package/dist/kanon/jit/builders/primitives/number.js +3 -3
  43. package/dist/kanon/jit/builders/primitives/others.d.ts +2 -2
  44. package/dist/kanon/jit/builders/primitives/others.js +3 -3
  45. package/dist/kanon/jit/builders/primitives/string.d.ts +2 -2
  46. package/dist/kanon/jit/builders/primitives/string.js +4 -4
  47. package/dist/kanon/jit/builders/refinements.d.ts +2 -2
  48. package/dist/kanon/jit/builders/refinements.js +2 -2
  49. package/dist/kanon/jit/cache.d.ts +1 -1
  50. package/dist/kanon/jit/compiler.d.ts +4 -4
  51. package/dist/kanon/jit/compiler.js +14 -14
  52. package/dist/kanon/jit/context.d.ts +1 -1
  53. package/dist/kanon/jit/utils/arbitraries.d.ts +1 -1
  54. package/dist/kanon/jit/utils/arbitraries.js +6 -6
  55. package/dist/kanon/jit/utils/code.d.ts +1 -1
  56. package/dist/kanon/jit/utils/code.js +1 -1
  57. package/dist/kanon/schemas/coerce/bigint.d.ts +1 -1
  58. package/dist/kanon/schemas/coerce/bigint.js +2 -2
  59. package/dist/kanon/schemas/coerce/boolean.d.ts +1 -1
  60. package/dist/kanon/schemas/coerce/date.d.ts +1 -1
  61. package/dist/kanon/schemas/coerce/date.js +2 -2
  62. package/dist/kanon/schemas/coerce/number.d.ts +1 -1
  63. package/dist/kanon/schemas/coerce/number.js +2 -2
  64. package/dist/kanon/schemas/coerce/string.d.ts +1 -1
  65. package/dist/kanon/schemas/coerce/string.js +2 -2
  66. package/dist/kanon/schemas/composites/array.d.ts +2 -2
  67. package/dist/kanon/schemas/composites/array.js +3 -3
  68. package/dist/kanon/schemas/composites/map.d.ts +2 -2
  69. package/dist/kanon/schemas/composites/map.js +3 -3
  70. package/dist/kanon/schemas/composites/object.d.ts +2 -2
  71. package/dist/kanon/schemas/composites/object.js +3 -3
  72. package/dist/kanon/schemas/composites/record.d.ts +2 -2
  73. package/dist/kanon/schemas/composites/record.js +2 -2
  74. package/dist/kanon/schemas/composites/set.d.ts +2 -2
  75. package/dist/kanon/schemas/composites/set.js +3 -3
  76. package/dist/kanon/schemas/composites/tuple.d.ts +2 -2
  77. package/dist/kanon/schemas/composites/tuple.js +2 -2
  78. package/dist/kanon/schemas/constraints/array.d.ts +3 -3
  79. package/dist/kanon/schemas/constraints/array.js +2 -2
  80. package/dist/kanon/schemas/constraints/bigint.d.ts +2 -2
  81. package/dist/kanon/schemas/constraints/bigint.js +2 -2
  82. package/dist/kanon/schemas/constraints/date.d.ts +2 -2
  83. package/dist/kanon/schemas/constraints/date.js +2 -2
  84. package/dist/kanon/schemas/constraints/map.d.ts +3 -3
  85. package/dist/kanon/schemas/constraints/map.js +2 -2
  86. package/dist/kanon/schemas/constraints/number.d.ts +2 -2
  87. package/dist/kanon/schemas/constraints/number.js +2 -2
  88. package/dist/kanon/schemas/constraints/object.d.ts +3 -3
  89. package/dist/kanon/schemas/constraints/object.js +2 -2
  90. package/dist/kanon/schemas/constraints/refine/array.d.ts +3 -3
  91. package/dist/kanon/schemas/constraints/refine/array.js +2 -2
  92. package/dist/kanon/schemas/constraints/refine/bigint.d.ts +2 -2
  93. package/dist/kanon/schemas/constraints/refine/date.d.ts +2 -2
  94. package/dist/kanon/schemas/constraints/refine/map.d.ts +3 -3
  95. package/dist/kanon/schemas/constraints/refine/map.js +2 -2
  96. package/dist/kanon/schemas/constraints/refine/number.d.ts +2 -2
  97. package/dist/kanon/schemas/constraints/refine/object.d.ts +3 -3
  98. package/dist/kanon/schemas/constraints/refine/object.js +2 -2
  99. package/dist/kanon/schemas/constraints/refine/set.d.ts +3 -3
  100. package/dist/kanon/schemas/constraints/refine/set.js +2 -2
  101. package/dist/kanon/schemas/constraints/refine/string.d.ts +2 -2
  102. package/dist/kanon/schemas/constraints/set.d.ts +3 -3
  103. package/dist/kanon/schemas/constraints/set.js +2 -2
  104. package/dist/kanon/schemas/constraints/string.d.ts +2 -2
  105. package/dist/kanon/schemas/constraints/string.js +3 -3
  106. package/dist/kanon/schemas/operators/intersection.d.ts +2 -2
  107. package/dist/kanon/schemas/operators/union.d.ts +2 -2
  108. package/dist/kanon/schemas/operators/union.js +1 -1
  109. package/dist/kanon/schemas/primitives/any.d.ts +1 -1
  110. package/dist/kanon/schemas/primitives/bigint.d.ts +1 -1
  111. package/dist/kanon/schemas/primitives/bigint.js +2 -2
  112. package/dist/kanon/schemas/primitives/boolean.d.ts +1 -1
  113. package/dist/kanon/schemas/primitives/boolean.js +1 -1
  114. package/dist/kanon/schemas/primitives/date.d.ts +1 -1
  115. package/dist/kanon/schemas/primitives/date.js +2 -2
  116. package/dist/kanon/schemas/primitives/enum.d.ts +1 -1
  117. package/dist/kanon/schemas/primitives/enum.js +1 -1
  118. package/dist/kanon/schemas/primitives/int.d.ts +1 -1
  119. package/dist/kanon/schemas/primitives/int.js +1 -1
  120. package/dist/kanon/schemas/primitives/literal.d.ts +1 -1
  121. package/dist/kanon/schemas/primitives/literal.js +1 -1
  122. package/dist/kanon/schemas/primitives/nativeEnum.d.ts +1 -1
  123. package/dist/kanon/schemas/primitives/nativeEnum.js +1 -1
  124. package/dist/kanon/schemas/primitives/never.d.ts +1 -1
  125. package/dist/kanon/schemas/primitives/never.js +1 -1
  126. package/dist/kanon/schemas/primitives/null.d.ts +1 -1
  127. package/dist/kanon/schemas/primitives/null.js +1 -1
  128. package/dist/kanon/schemas/primitives/number.d.ts +1 -1
  129. package/dist/kanon/schemas/primitives/number.js +2 -2
  130. package/dist/kanon/schemas/primitives/string.d.ts +1 -1
  131. package/dist/kanon/schemas/primitives/string.js +2 -2
  132. package/dist/kanon/schemas/primitives/symbol.d.ts +1 -1
  133. package/dist/kanon/schemas/primitives/symbol.js +1 -1
  134. package/dist/kanon/schemas/primitives/undefined.d.ts +1 -1
  135. package/dist/kanon/schemas/primitives/undefined.js +1 -1
  136. package/dist/kanon/schemas/primitives/unknown.d.ts +1 -1
  137. package/dist/kanon/schemas/primitives/void.d.ts +1 -1
  138. package/dist/kanon/schemas/primitives/void.js +1 -1
  139. package/dist/kanon/schemas/transforms/keyof.d.ts +4 -4
  140. package/dist/kanon/schemas/transforms/keyof.js +1 -1
  141. package/dist/kanon/schemas/transforms/omit.d.ts +4 -4
  142. package/dist/kanon/schemas/transforms/omit.js +1 -1
  143. package/dist/kanon/schemas/transforms/partial.d.ts +4 -4
  144. package/dist/kanon/schemas/transforms/partial.js +1 -1
  145. package/dist/kanon/schemas/transforms/pick.d.ts +4 -4
  146. package/dist/kanon/schemas/transforms/pick.js +1 -1
  147. package/dist/kanon/schemas/transforms/required.d.ts +4 -4
  148. package/dist/kanon/schemas/transforms/required.js +1 -1
  149. package/dist/kanon/schemas/wrappers/default.d.ts +2 -2
  150. package/dist/kanon/schemas/wrappers/lazy.d.ts +2 -2
  151. package/dist/kanon/schemas/wrappers/nullable.d.ts +2 -2
  152. package/dist/kanon/schemas/wrappers/nullish.d.ts +2 -2
  153. package/dist/kanon/schemas/wrappers/optional.d.ts +2 -2
  154. package/dist/kanon/schemas/wrappers/readonly.d.ts +2 -2
  155. package/dist/kanon/types/composites.d.ts +1 -1
  156. package/dist/kanon/types/constraints.d.ts +1 -1
  157. package/dist/kanon/types/guards.d.ts +7 -7
  158. package/dist/kanon/types/operators.d.ts +2 -2
  159. package/dist/kanon/types/primitives.d.ts +1 -1
  160. package/dist/kanon/types/transforms.d.ts +1 -1
  161. package/dist/kanon/types/wrappers.d.ts +1 -1
  162. package/dist/kanon/validation.d.ts +1 -1
  163. package/dist/kanon/validation.js +1 -1
  164. package/dist/taphos/array/nth.js +1 -1
  165. package/dist/taphos/array/pull-all.js +1 -1
  166. package/dist/taphos/array/pullAllBy.js +1 -1
  167. package/dist/taphos/array/pullAllWith.js +1 -1
  168. package/dist/taphos/array/without.js +1 -1
  169. package/dist/taphos/object/at.js +1 -1
  170. package/dist/taphos/object/extend.js +1 -1
  171. package/dist/taphos/object/invoke.js +1 -1
  172. package/dist/taphos/object/unset.js +2 -2
  173. package/dist/taphos/object/update.js +2 -2
  174. package/dist/taphos/util/rangeRight.js +1 -1
  175. package/dist/zygos/either.d.ts +1 -1
  176. package/dist/zygos/either.js +1 -1
  177. package/dist/zygos/option.d.ts +1 -1
  178. package/dist/zygos/result/result-async.d.ts +5 -5
  179. package/dist/zygos/result/result-async.js +5 -5
  180. package/dist/zygos/result/result.d.ts +3 -3
  181. package/dist/zygos/result/result.js +4 -4
  182. package/dist/zygos/safe.d.ts +1 -1
  183. package/dist/zygos/safe.js +1 -1
  184. package/dist/zygos/task-either.d.ts +3 -3
  185. package/dist/zygos/task-either.js +3 -3
  186. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import type { Schema } from "../kanon/types/base";
2
- import type { Result } from "../zygos/result/result";
1
+ import type { Schema } from "../kanon/types/base.js";
2
+ import type { Result } from "../zygos/result/result.js";
3
3
  /**
4
4
  * Parses a value against a Kanon schema and returns a Zygos `Result`.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { parse } from "../kanon/core/parser";
2
- import { ok, err } from "../zygos/result/result";
1
+ import { parse } from "../kanon/core/parser.js";
2
+ import { ok, err } from "../zygos/result/result.js";
3
3
  /**
4
4
  * Parses a value against a Kanon schema and returns a Zygos `Result`.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { Schema } from "../kanon/types/base";
2
- import type { ResultAsync } from "../zygos/result/result-async";
1
+ import type { Schema } from "../kanon/types/base.js";
2
+ import type { ResultAsync } from "../zygos/result/result-async.js";
3
3
  /**
4
4
  * Parses a value against a Kanon schema and returns a Zygos `ResultAsync`.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { parse } from "../kanon/core/parser";
2
- import { okAsync, errAsync } from "../zygos/result/result-async";
1
+ import { parse } from "../kanon/core/parser.js";
2
+ import { okAsync, errAsync } from "../zygos/result/result-async.js";
3
3
  /**
4
4
  * Parses a value against a Kanon schema and returns a Zygos `ResultAsync`.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { ResultAsync } from "../zygos/result/result-async";
2
- import type { Schema } from "../kanon/types/base";
1
+ import { ResultAsync } from "../zygos/result/result-async.js";
2
+ import type { Schema } from "../kanon/types/base.js";
3
3
  /**
4
4
  * Resolves a Promise, validates the result against a Kanon schema,
5
5
  * and returns a `ResultAsync`.
@@ -11,7 +11,7 @@ import type { Schema } from "../kanon/types/base";
11
11
  * @param schema - Kanon schema to validate against.
12
12
  * @param promise - Promise that resolves to the value to validate.
13
13
  * @returns `ResultAsync<T, string>` — `Ok<T>` if the promise resolves and validation succeeds, `Err<string>` otherwise.
14
- * @since 2.2.0
14
+ * @since 2.1.0
15
15
  *
16
16
  * @example
17
17
  * ```typescript
@@ -1,5 +1,5 @@
1
- import { parse } from "../kanon/core/parser";
2
- import { ResultAsync, okAsync, errAsync } from "../zygos/result/result-async";
1
+ import { parse } from "../kanon/core/parser.js";
2
+ import { ResultAsync, okAsync, errAsync } from "../zygos/result/result-async.js";
3
3
  /**
4
4
  * Resolves a Promise, validates the result against a Kanon schema,
5
5
  * and returns a `ResultAsync`.
@@ -11,7 +11,7 @@ import { ResultAsync, okAsync, errAsync } from "../zygos/result/result-async";
11
11
  * @param schema - Kanon schema to validate against.
12
12
  * @param promise - Promise that resolves to the value to validate.
13
13
  * @returns `ResultAsync<T, string>` — `Ok<T>` if the promise resolves and validation succeeds, `Err<string>` otherwise.
14
- * @since 2.2.0
14
+ * @since 2.1.0
15
15
  *
16
16
  * @example
17
17
  * ```typescript
@@ -1,4 +1,4 @@
1
- import { Schema } from "../types/base";
1
+ import { Schema } from "../types/base.js";
2
2
  /**
3
3
  * Core parsing logic for Kanon V3 validation system.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { isCoerced } from "../types/base";
1
+ import { isCoerced } from "../types/base.js";
2
2
  /**
3
3
  * Core parsing logic for Kanon V3 validation system.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { Schema } from "../index";
1
+ import type { Schema } from "../index.js";
2
2
  /**
3
3
  * Validation issue with a message and path.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { array, intersection, nullable, nullish, optional, readonly as readonlyWrapper, unionOf, parse, } from "../index";
2
- import { isCoerced } from "../types/base";
1
+ import { array, intersection, nullable, nullish, optional, readonly as readonlyWrapper, unionOf, parse, } from "../index.js";
2
+ import { isCoerced } from "../types/base.js";
3
3
  /**
4
4
  * Creates a Zod-compatible error object from a message string.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { asZod } from "./as-zod";
1
+ import { asZod } from "./as-zod.js";
2
2
  /**
3
3
  * Shorthand for the return type of `asZod` with a given type.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { asZod } from "./as-zod";
2
- import { any as anySchema, array, bigint, boolean, coerceBigInt, coerceBoolean, coerceDate, coerceNumber, coerceString, date, discriminatedUnion as kanonDiscriminatedUnion, enum_ as enumSchema, int, lazy, intersection, literal, looseObject, map, nativeEnum, never, null_ as nullSchema, number, object, record, set, strictObject, string, symbol as symbolSchema, tuple, tupleWithRest, undefined_ as undefinedSchema, unknown, void_ as voidSchema, partial as kanonPartial, required as kanonRequired, pick as kanonPick, omit as kanonOmit, keyof as kanonKeyof, } from "../index";
3
- import { ERROR_MESSAGES_COMPOSITION } from "../core/consts/messages";
1
+ import { asZod } from "./as-zod.js";
2
+ import { any as anySchema, array, bigint, boolean, coerceBigInt, coerceBoolean, coerceDate, coerceNumber, coerceString, date, discriminatedUnion as kanonDiscriminatedUnion, enum_ as enumSchema, int, lazy, intersection, literal, looseObject, map, nativeEnum, never, null_ as nullSchema, number, object, record, set, strictObject, string, symbol as symbolSchema, tuple, tupleWithRest, undefined_ as undefinedSchema, unknown, void_ as voidSchema, partial as kanonPartial, required as kanonRequired, pick as kanonPick, omit as kanonOmit, keyof as kanonKeyof, } from "../index.js";
3
+ import { ERROR_MESSAGES_COMPOSITION } from "../core/consts/messages.js";
4
4
  /**
5
5
  * Zod-compatible API shim for Kanon V3.
6
6
  *
@@ -1,43 +1,43 @@
1
- import { string } from "../schemas/primitives/string";
2
- import { number } from "../schemas/primitives/number";
3
- import { boolean } from "../schemas/primitives/boolean";
4
- import { date } from "../schemas/primitives/date";
5
- import { bigint } from "../schemas/primitives/bigint";
6
- import { symbol } from "../schemas/primitives/symbol";
7
- import { int } from "../schemas/primitives/int";
8
- import { null_ } from "../schemas/primitives/null";
9
- import { undefined_ } from "../schemas/primitives/undefined";
10
- import { void_ } from "../schemas/primitives/void";
11
- import { never } from "../schemas/primitives/never";
12
- import { any } from "../schemas/primitives/any";
13
- import { unknown } from "../schemas/primitives/unknown";
14
- import { literal } from "../schemas/primitives/literal";
15
- import { enum_, numberEnum, booleanEnum, mixedEnum } from "../schemas/primitives/enum";
16
- import { nativeEnum } from "../schemas/primitives/nativeEnum";
17
- import { object, strictObject } from "../schemas/composites/object";
18
- import { array } from "../schemas/composites/array";
19
- import { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest } from "../schemas/composites/tuple";
20
- import { record } from "../schemas/composites/record";
21
- import { map } from "../schemas/composites/map";
22
- import { set } from "../schemas/composites/set";
23
- import { unionOf, unionOf3, unionOf4 } from "../schemas/operators/union";
24
- import { intersection, intersection3 } from "../schemas/operators/intersection";
25
- import { partial } from "../schemas/transforms/partial";
26
- import { required } from "../schemas/transforms/required";
27
- import { pick } from "../schemas/transforms/pick";
28
- import { omit } from "../schemas/transforms/omit";
29
- import { keyof } from "../schemas/transforms/keyof";
30
- import { optional } from "../schemas/wrappers/optional";
31
- import { nullable } from "../schemas/wrappers/nullable";
32
- import { default_ } from "../schemas/wrappers/default";
33
- import { readonly } from "../schemas/wrappers/readonly";
34
- import { lazy } from "../schemas/wrappers/lazy";
35
- import { coerceString } from "../schemas/coerce/string";
36
- import { coerceNumber } from "../schemas/coerce/number";
37
- import { coerceBoolean } from "../schemas/coerce/boolean";
38
- import { coerceDate } from "../schemas/coerce/date";
39
- import { coerceBigInt } from "../schemas/coerce/bigint";
40
- import { parse, parseBulk } from "../core/parser";
1
+ import { string } from "../schemas/primitives/string.js";
2
+ import { number } from "../schemas/primitives/number.js";
3
+ import { boolean } from "../schemas/primitives/boolean.js";
4
+ import { date } from "../schemas/primitives/date.js";
5
+ import { bigint } from "../schemas/primitives/bigint.js";
6
+ import { symbol } from "../schemas/primitives/symbol.js";
7
+ import { int } from "../schemas/primitives/int.js";
8
+ import { null_ } from "../schemas/primitives/null.js";
9
+ import { undefined_ } from "../schemas/primitives/undefined.js";
10
+ import { void_ } from "../schemas/primitives/void.js";
11
+ import { never } from "../schemas/primitives/never.js";
12
+ import { any } from "../schemas/primitives/any.js";
13
+ import { unknown } from "../schemas/primitives/unknown.js";
14
+ import { literal } from "../schemas/primitives/literal.js";
15
+ import { enum_, numberEnum, booleanEnum, mixedEnum } from "../schemas/primitives/enum.js";
16
+ import { nativeEnum } from "../schemas/primitives/nativeEnum.js";
17
+ import { object, strictObject } from "../schemas/composites/object.js";
18
+ import { array } from "../schemas/composites/array.js";
19
+ import { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest } from "../schemas/composites/tuple.js";
20
+ import { record } from "../schemas/composites/record.js";
21
+ import { map } from "../schemas/composites/map.js";
22
+ import { set } from "../schemas/composites/set.js";
23
+ import { unionOf, unionOf3, unionOf4 } from "../schemas/operators/union.js";
24
+ import { intersection, intersection3 } from "../schemas/operators/intersection.js";
25
+ import { partial } from "../schemas/transforms/partial.js";
26
+ import { required } from "../schemas/transforms/required.js";
27
+ import { pick } from "../schemas/transforms/pick.js";
28
+ import { omit } from "../schemas/transforms/omit.js";
29
+ import { keyof } from "../schemas/transforms/keyof.js";
30
+ import { optional } from "../schemas/wrappers/optional.js";
31
+ import { nullable } from "../schemas/wrappers/nullable.js";
32
+ import { default_ } from "../schemas/wrappers/default.js";
33
+ import { readonly } from "../schemas/wrappers/readonly.js";
34
+ import { lazy } from "../schemas/wrappers/lazy.js";
35
+ import { coerceString } from "../schemas/coerce/string.js";
36
+ import { coerceNumber } from "../schemas/coerce/number.js";
37
+ import { coerceBoolean } from "../schemas/coerce/boolean.js";
38
+ import { coerceDate } from "../schemas/coerce/date.js";
39
+ import { coerceBigInt } from "../schemas/coerce/bigint.js";
40
+ import { parse, parseBulk } from "../core/parser.js";
41
41
  /**
42
42
  * Kanon namespace object providing a single entry point for all schemas.
43
43
  *
@@ -51,7 +51,7 @@ import { parse, parseBulk } from "../core/parser";
51
51
  *
52
52
  * @example
53
53
  * ```typescript
54
- * import { k } from '../helpers/k';
54
+ * import { k } from '../helpers/k.js';
55
55
  *
56
56
  * const userSchema = k.object({
57
57
  * name: k.string().minLength(1),
@@ -175,5 +175,5 @@ export declare const k: {
175
175
  /** Validates an array of values against a schema. */
176
176
  readonly parseBulk: typeof parseBulk;
177
177
  };
178
- export type { Infer, Schema, GenericSchema } from "../types/base";
178
+ export type { Infer, Schema, GenericSchema } from "../types/base.js";
179
179
  //# sourceMappingURL=k.d.ts.map
@@ -1,50 +1,50 @@
1
1
  // Primitives
2
- import { string } from "../schemas/primitives/string";
3
- import { number } from "../schemas/primitives/number";
4
- import { boolean } from "../schemas/primitives/boolean";
5
- import { date } from "../schemas/primitives/date";
6
- import { bigint } from "../schemas/primitives/bigint";
7
- import { symbol } from "../schemas/primitives/symbol";
8
- import { int } from "../schemas/primitives/int";
9
- import { null_ } from "../schemas/primitives/null";
10
- import { undefined_ } from "../schemas/primitives/undefined";
11
- import { void_ } from "../schemas/primitives/void";
12
- import { never } from "../schemas/primitives/never";
13
- import { any } from "../schemas/primitives/any";
14
- import { unknown } from "../schemas/primitives/unknown";
15
- import { literal } from "../schemas/primitives/literal";
16
- import { enum_, numberEnum, booleanEnum, mixedEnum } from "../schemas/primitives/enum";
17
- import { nativeEnum } from "../schemas/primitives/nativeEnum";
2
+ import { string } from "../schemas/primitives/string.js";
3
+ import { number } from "../schemas/primitives/number.js";
4
+ import { boolean } from "../schemas/primitives/boolean.js";
5
+ import { date } from "../schemas/primitives/date.js";
6
+ import { bigint } from "../schemas/primitives/bigint.js";
7
+ import { symbol } from "../schemas/primitives/symbol.js";
8
+ import { int } from "../schemas/primitives/int.js";
9
+ import { null_ } from "../schemas/primitives/null.js";
10
+ import { undefined_ } from "../schemas/primitives/undefined.js";
11
+ import { void_ } from "../schemas/primitives/void.js";
12
+ import { never } from "../schemas/primitives/never.js";
13
+ import { any } from "../schemas/primitives/any.js";
14
+ import { unknown } from "../schemas/primitives/unknown.js";
15
+ import { literal } from "../schemas/primitives/literal.js";
16
+ import { enum_, numberEnum, booleanEnum, mixedEnum } from "../schemas/primitives/enum.js";
17
+ import { nativeEnum } from "../schemas/primitives/nativeEnum.js";
18
18
  // Composites
19
- import { object, strictObject, looseObject } from "../schemas/composites/object";
20
- import { array } from "../schemas/composites/array";
21
- import { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest } from "../schemas/composites/tuple";
22
- import { record } from "../schemas/composites/record";
23
- import { map } from "../schemas/composites/map";
24
- import { set } from "../schemas/composites/set";
19
+ import { object, strictObject, looseObject } from "../schemas/composites/object.js";
20
+ import { array } from "../schemas/composites/array.js";
21
+ import { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest } from "../schemas/composites/tuple.js";
22
+ import { record } from "../schemas/composites/record.js";
23
+ import { map } from "../schemas/composites/map.js";
24
+ import { set } from "../schemas/composites/set.js";
25
25
  // Operators
26
- import { unionOf, unionOf3, unionOf4 } from "../schemas/operators/union";
27
- import { intersection, intersection3 } from "../schemas/operators/intersection";
26
+ import { unionOf, unionOf3, unionOf4 } from "../schemas/operators/union.js";
27
+ import { intersection, intersection3 } from "../schemas/operators/intersection.js";
28
28
  // Transforms
29
- import { partial } from "../schemas/transforms/partial";
30
- import { required } from "../schemas/transforms/required";
31
- import { pick } from "../schemas/transforms/pick";
32
- import { omit } from "../schemas/transforms/omit";
33
- import { keyof } from "../schemas/transforms/keyof";
29
+ import { partial } from "../schemas/transforms/partial.js";
30
+ import { required } from "../schemas/transforms/required.js";
31
+ import { pick } from "../schemas/transforms/pick.js";
32
+ import { omit } from "../schemas/transforms/omit.js";
33
+ import { keyof } from "../schemas/transforms/keyof.js";
34
34
  // Wrappers
35
- import { optional } from "../schemas/wrappers/optional";
36
- import { nullable } from "../schemas/wrappers/nullable";
37
- import { default_ } from "../schemas/wrappers/default";
38
- import { readonly } from "../schemas/wrappers/readonly";
39
- import { lazy } from "../schemas/wrappers/lazy";
35
+ import { optional } from "../schemas/wrappers/optional.js";
36
+ import { nullable } from "../schemas/wrappers/nullable.js";
37
+ import { default_ } from "../schemas/wrappers/default.js";
38
+ import { readonly } from "../schemas/wrappers/readonly.js";
39
+ import { lazy } from "../schemas/wrappers/lazy.js";
40
40
  // Coerce
41
- import { coerceString } from "../schemas/coerce/string";
42
- import { coerceNumber } from "../schemas/coerce/number";
43
- import { coerceBoolean } from "../schemas/coerce/boolean";
44
- import { coerceDate } from "../schemas/coerce/date";
45
- import { coerceBigInt } from "../schemas/coerce/bigint";
41
+ import { coerceString } from "../schemas/coerce/string.js";
42
+ import { coerceNumber } from "../schemas/coerce/number.js";
43
+ import { coerceBoolean } from "../schemas/coerce/boolean.js";
44
+ import { coerceDate } from "../schemas/coerce/date.js";
45
+ import { coerceBigInt } from "../schemas/coerce/bigint.js";
46
46
  // Core
47
- import { parse, parseBulk } from "../core/parser";
47
+ import { parse, parseBulk } from "../core/parser.js";
48
48
  /**
49
49
  * Kanon namespace object providing a single entry point for all schemas.
50
50
  *
@@ -58,7 +58,7 @@ import { parse, parseBulk } from "../core/parser";
58
58
  *
59
59
  * @example
60
60
  * ```typescript
61
- * import { k } from '../helpers/k';
61
+ * import { k } from '../helpers/k.js';
62
62
  *
63
63
  * const userSchema = k.object({
64
64
  * name: k.string().minLength(1),
@@ -3,60 +3,60 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export { parse, parseBulk, type ParseBulkOptions } from "./core/parser";
7
- export { any } from "./schemas/primitives/any";
8
- export { bigint } from "./schemas/primitives/bigint";
9
- export { boolean } from "./schemas/primitives/boolean";
10
- export { date } from "./schemas/primitives/date";
11
- export { int } from "./schemas/primitives/int";
12
- export { never } from "./schemas/primitives/never";
13
- export { null_ } from "./schemas/primitives/null";
14
- export { number } from "./schemas/primitives/number";
15
- export { string } from "./schemas/primitives/string";
16
- export { symbol } from "./schemas/primitives/symbol";
17
- export { undefined_ } from "./schemas/primitives/undefined";
18
- export { unknown } from "./schemas/primitives/unknown";
19
- export { void_ } from "./schemas/primitives/void";
20
- export { literal } from "./schemas/primitives/literal";
21
- export { enum_, numberEnum, booleanEnum, mixedEnum, } from "./schemas/primitives/enum";
22
- export { nativeEnum } from "./schemas/primitives/nativeEnum";
23
- export { object, strictObject, looseObject } from "./schemas/composites/object";
24
- export { array } from "./schemas/composites/array";
25
- export { record } from "./schemas/composites/record";
26
- export { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest, } from "./schemas/composites/tuple";
27
- export { map } from "./schemas/composites/map";
28
- export { set } from "./schemas/composites/set";
29
- export { unionOf, unionOf3, unionOf4, discriminatedUnion, } from "./schemas/operators/union";
30
- export { intersection, intersection3 } from "./schemas/operators/intersection";
31
- export { optional } from "./schemas/wrappers/optional";
32
- export { nullable } from "./schemas/wrappers/nullable";
33
- export { nullish } from "./schemas/wrappers/nullish";
34
- export { default_, DefaultValues } from "./schemas/wrappers/default";
35
- export { readonly } from "./schemas/wrappers/readonly";
36
- export { lazy } from "./schemas/wrappers/lazy";
37
- export { partial } from "./schemas/transforms/partial";
38
- export { required } from "./schemas/transforms/required";
39
- export { pick } from "./schemas/transforms/pick";
40
- export { omit } from "./schemas/transforms/omit";
41
- export { keyof } from "./schemas/transforms/keyof";
42
- export { coerceString } from "./schemas/coerce/string";
43
- export { coerceNumber } from "./schemas/coerce/number";
44
- export { coerceBoolean } from "./schemas/coerce/boolean";
45
- export { coerceBigInt } from "./schemas/coerce/bigint";
46
- export { coerceDate } from "./schemas/coerce/date";
47
- export type { Schema, GenericSchema, Infer, ValidatorResult, CoercedResult } from "./types/base";
48
- export type { StringConstraint, NumberConstraint, ArrayConstraint, ObjectConstraint, DateConstraint, BigIntConstraint, } from "./types/constraints";
49
- export type { StringSchema, NumberSchema, IntSchema, BooleanSchema, DateSchema, BigIntSchema, EnumSchema, NativeEnumSchema, LiteralSchema, AnySchema, UnknownSchema, NeverSchema, NullSchema, UndefinedSchema, SymbolSchema, VoidSchema, } from "./types/primitives";
50
- export type { IntersectionSchema, UnionSchema, DiscriminatedUnionSchema, DiscriminableSchema, DiscriminableObjectBase, } from "./types/operators";
51
- export type { ObjectSchema, ArraySchema, RecordSchema, MapSchema, SetSchema, TupleSchema, TupleWithRestSchema, } from "./types/composites";
52
- export { hasTupleRest } from "./types/composites";
53
- export type { SetConstraint, MapConstraint, } from "./types/constraints";
54
- export type { DefaultSchema, NullishSchema, ReadonlySchema, LazySchema, UnwrapSchema, IsWrapper, } from "./types/wrappers";
55
- export type { KeyofSchema, PartialSchema, RequiredSchema, PickSchema, OmitSchema, } from "./types/transforms";
56
- export { isSchemaType, schemaGuards, isStringConstraint, isNumberConstraint, isArrayConstraint, isObjectConstraint, isDateConstraint, isBigIntConstraint, isSetConstraint, isMapConstraint } from "./types/guards";
57
- export type { SchemaOfType } from "./types/guards";
58
- export { k } from "./helpers/k";
59
- export { validation } from "./validation";
60
- export { compile, isJITAvailable, clearCache } from "./jit/compiler";
61
- export type { CompileOptions, CompiledValidator } from "./jit/compiler";
6
+ export { parse, parseBulk, type ParseBulkOptions } from "./core/parser.js";
7
+ export { any } from "./schemas/primitives/any.js";
8
+ export { bigint } from "./schemas/primitives/bigint.js";
9
+ export { boolean } from "./schemas/primitives/boolean.js";
10
+ export { date } from "./schemas/primitives/date.js";
11
+ export { int } from "./schemas/primitives/int.js";
12
+ export { never } from "./schemas/primitives/never.js";
13
+ export { null_ } from "./schemas/primitives/null.js";
14
+ export { number } from "./schemas/primitives/number.js";
15
+ export { string } from "./schemas/primitives/string.js";
16
+ export { symbol } from "./schemas/primitives/symbol.js";
17
+ export { undefined_ } from "./schemas/primitives/undefined.js";
18
+ export { unknown } from "./schemas/primitives/unknown.js";
19
+ export { void_ } from "./schemas/primitives/void.js";
20
+ export { literal } from "./schemas/primitives/literal.js";
21
+ export { enum_, numberEnum, booleanEnum, mixedEnum, } from "./schemas/primitives/enum.js";
22
+ export { nativeEnum } from "./schemas/primitives/nativeEnum.js";
23
+ export { object, strictObject, looseObject } from "./schemas/composites/object.js";
24
+ export { array } from "./schemas/composites/array.js";
25
+ export { record } from "./schemas/composites/record.js";
26
+ export { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest, } from "./schemas/composites/tuple.js";
27
+ export { map } from "./schemas/composites/map.js";
28
+ export { set } from "./schemas/composites/set.js";
29
+ export { unionOf, unionOf3, unionOf4, discriminatedUnion, } from "./schemas/operators/union.js";
30
+ export { intersection, intersection3 } from "./schemas/operators/intersection.js";
31
+ export { optional } from "./schemas/wrappers/optional.js";
32
+ export { nullable } from "./schemas/wrappers/nullable.js";
33
+ export { nullish } from "./schemas/wrappers/nullish.js";
34
+ export { default_, DefaultValues } from "./schemas/wrappers/default.js";
35
+ export { readonly } from "./schemas/wrappers/readonly.js";
36
+ export { lazy } from "./schemas/wrappers/lazy.js";
37
+ export { partial } from "./schemas/transforms/partial.js";
38
+ export { required } from "./schemas/transforms/required.js";
39
+ export { pick } from "./schemas/transforms/pick.js";
40
+ export { omit } from "./schemas/transforms/omit.js";
41
+ export { keyof } from "./schemas/transforms/keyof.js";
42
+ export { coerceString } from "./schemas/coerce/string.js";
43
+ export { coerceNumber } from "./schemas/coerce/number.js";
44
+ export { coerceBoolean } from "./schemas/coerce/boolean.js";
45
+ export { coerceBigInt } from "./schemas/coerce/bigint.js";
46
+ export { coerceDate } from "./schemas/coerce/date.js";
47
+ export type { Schema, GenericSchema, Infer, ValidatorResult, CoercedResult } from "./types/base.js";
48
+ export type { StringConstraint, NumberConstraint, ArrayConstraint, ObjectConstraint, DateConstraint, BigIntConstraint, } from "./types/constraints.js";
49
+ export type { StringSchema, NumberSchema, IntSchema, BooleanSchema, DateSchema, BigIntSchema, EnumSchema, NativeEnumSchema, LiteralSchema, AnySchema, UnknownSchema, NeverSchema, NullSchema, UndefinedSchema, SymbolSchema, VoidSchema, } from "./types/primitives.js";
50
+ export type { IntersectionSchema, UnionSchema, DiscriminatedUnionSchema, DiscriminableSchema, DiscriminableObjectBase, } from "./types/operators.js";
51
+ export type { ObjectSchema, ArraySchema, RecordSchema, MapSchema, SetSchema, TupleSchema, TupleWithRestSchema, } from "./types/composites.js";
52
+ export { hasTupleRest } from "./types/composites.js";
53
+ export type { SetConstraint, MapConstraint, } from "./types/constraints.js";
54
+ export type { DefaultSchema, NullishSchema, ReadonlySchema, LazySchema, UnwrapSchema, IsWrapper, } from "./types/wrappers.js";
55
+ export type { KeyofSchema, PartialSchema, RequiredSchema, PickSchema, OmitSchema, } from "./types/transforms.js";
56
+ export { isSchemaType, schemaGuards, isStringConstraint, isNumberConstraint, isArrayConstraint, isObjectConstraint, isDateConstraint, isBigIntConstraint, isSetConstraint, isMapConstraint } from "./types/guards.js";
57
+ export type { SchemaOfType } from "./types/guards.js";
58
+ export { k } from "./helpers/k.js";
59
+ export { validation } from "./validation.js";
60
+ export { compile, isJITAvailable, clearCache } from "./jit/compiler.js";
61
+ export type { CompileOptions, CompiledValidator } from "./jit/compiler.js";
62
62
  //# sourceMappingURL=index.d.ts.map
@@ -4,59 +4,59 @@
4
4
  * @since 2.0.0
5
5
  */
6
6
  // Core parser
7
- export { parse, parseBulk } from "./core/parser";
7
+ export { parse, parseBulk } from "./core/parser.js";
8
8
  // Primitives
9
- export { any } from "./schemas/primitives/any";
10
- export { bigint } from "./schemas/primitives/bigint";
11
- export { boolean } from "./schemas/primitives/boolean";
12
- export { date } from "./schemas/primitives/date";
13
- export { int } from "./schemas/primitives/int";
14
- export { never } from "./schemas/primitives/never";
15
- export { null_ } from "./schemas/primitives/null";
16
- export { number } from "./schemas/primitives/number";
17
- export { string } from "./schemas/primitives/string";
18
- export { symbol } from "./schemas/primitives/symbol";
19
- export { undefined_ } from "./schemas/primitives/undefined";
20
- export { unknown } from "./schemas/primitives/unknown";
21
- export { void_ } from "./schemas/primitives/void";
22
- export { literal } from "./schemas/primitives/literal";
9
+ export { any } from "./schemas/primitives/any.js";
10
+ export { bigint } from "./schemas/primitives/bigint.js";
11
+ export { boolean } from "./schemas/primitives/boolean.js";
12
+ export { date } from "./schemas/primitives/date.js";
13
+ export { int } from "./schemas/primitives/int.js";
14
+ export { never } from "./schemas/primitives/never.js";
15
+ export { null_ } from "./schemas/primitives/null.js";
16
+ export { number } from "./schemas/primitives/number.js";
17
+ export { string } from "./schemas/primitives/string.js";
18
+ export { symbol } from "./schemas/primitives/symbol.js";
19
+ export { undefined_ } from "./schemas/primitives/undefined.js";
20
+ export { unknown } from "./schemas/primitives/unknown.js";
21
+ export { void_ } from "./schemas/primitives/void.js";
22
+ export { literal } from "./schemas/primitives/literal.js";
23
23
  // Enums
24
- export { enum_, numberEnum, booleanEnum, mixedEnum, } from "./schemas/primitives/enum";
25
- export { nativeEnum } from "./schemas/primitives/nativeEnum";
24
+ export { enum_, numberEnum, booleanEnum, mixedEnum, } from "./schemas/primitives/enum.js";
25
+ export { nativeEnum } from "./schemas/primitives/nativeEnum.js";
26
26
  // Composites
27
- export { object, strictObject, looseObject } from "./schemas/composites/object";
28
- export { array } from "./schemas/composites/array";
29
- export { record } from "./schemas/composites/record";
30
- export { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest, } from "./schemas/composites/tuple";
31
- export { map } from "./schemas/composites/map";
32
- export { set } from "./schemas/composites/set";
27
+ export { object, strictObject, looseObject } from "./schemas/composites/object.js";
28
+ export { array } from "./schemas/composites/array.js";
29
+ export { record } from "./schemas/composites/record.js";
30
+ export { tuple, tupleOf, tupleOf3, tupleOf4, tupleWithRest, } from "./schemas/composites/tuple.js";
31
+ export { map } from "./schemas/composites/map.js";
32
+ export { set } from "./schemas/composites/set.js";
33
33
  // Operators
34
- export { unionOf, unionOf3, unionOf4, discriminatedUnion, } from "./schemas/operators/union";
35
- export { intersection, intersection3 } from "./schemas/operators/intersection";
34
+ export { unionOf, unionOf3, unionOf4, discriminatedUnion, } from "./schemas/operators/union.js";
35
+ export { intersection, intersection3 } from "./schemas/operators/intersection.js";
36
36
  // Wrappers
37
- export { optional } from "./schemas/wrappers/optional";
38
- export { nullable } from "./schemas/wrappers/nullable";
39
- export { nullish } from "./schemas/wrappers/nullish";
40
- export { default_, DefaultValues } from "./schemas/wrappers/default";
41
- export { readonly } from "./schemas/wrappers/readonly";
42
- export { lazy } from "./schemas/wrappers/lazy";
37
+ export { optional } from "./schemas/wrappers/optional.js";
38
+ export { nullable } from "./schemas/wrappers/nullable.js";
39
+ export { nullish } from "./schemas/wrappers/nullish.js";
40
+ export { default_, DefaultValues } from "./schemas/wrappers/default.js";
41
+ export { readonly } from "./schemas/wrappers/readonly.js";
42
+ export { lazy } from "./schemas/wrappers/lazy.js";
43
43
  // Transforms
44
- export { partial } from "./schemas/transforms/partial";
45
- export { required } from "./schemas/transforms/required";
46
- export { pick } from "./schemas/transforms/pick";
47
- export { omit } from "./schemas/transforms/omit";
48
- export { keyof } from "./schemas/transforms/keyof";
44
+ export { partial } from "./schemas/transforms/partial.js";
45
+ export { required } from "./schemas/transforms/required.js";
46
+ export { pick } from "./schemas/transforms/pick.js";
47
+ export { omit } from "./schemas/transforms/omit.js";
48
+ export { keyof } from "./schemas/transforms/keyof.js";
49
49
  // Coercion
50
- export { coerceString } from "./schemas/coerce/string";
51
- export { coerceNumber } from "./schemas/coerce/number";
52
- export { coerceBoolean } from "./schemas/coerce/boolean";
53
- export { coerceBigInt } from "./schemas/coerce/bigint";
54
- export { coerceDate } from "./schemas/coerce/date";
55
- export { hasTupleRest } from "./types/composites";
56
- export { isSchemaType, schemaGuards, isStringConstraint, isNumberConstraint, isArrayConstraint, isObjectConstraint, isDateConstraint, isBigIntConstraint, isSetConstraint, isMapConstraint } from "./types/guards";
50
+ export { coerceString } from "./schemas/coerce/string.js";
51
+ export { coerceNumber } from "./schemas/coerce/number.js";
52
+ export { coerceBoolean } from "./schemas/coerce/boolean.js";
53
+ export { coerceBigInt } from "./schemas/coerce/bigint.js";
54
+ export { coerceDate } from "./schemas/coerce/date.js";
55
+ export { hasTupleRest } from "./types/composites.js";
56
+ export { isSchemaType, schemaGuards, isStringConstraint, isNumberConstraint, isArrayConstraint, isObjectConstraint, isDateConstraint, isBigIntConstraint, isSetConstraint, isMapConstraint } from "./types/guards.js";
57
57
  // Helpers
58
- export { k } from "./helpers/k";
59
- export { validation } from "./validation";
58
+ export { k } from "./helpers/k.js";
59
+ export { validation } from "./validation.js";
60
60
  // JIT Compiler
61
- export { compile, isJITAvailable, clearCache } from "./jit/compiler";
61
+ export { compile, isJITAvailable, clearCache } from "./jit/compiler.js";
62
62
  //# sourceMappingURL=index.js.map
@@ -12,8 +12,8 @@
12
12
  * @since 2.0.0
13
13
  * @experimental
14
14
  */
15
- import type { GeneratorContext } from "../context";
16
- import { type CodeGenResult } from "../utils/code";
15
+ import type { GeneratorContext } from "../context.js";
16
+ import { type CodeGenResult } from "../utils/code.js";
17
17
  /**
18
18
  * Generates inline code for coerce.string().
19
19
  *
@@ -12,8 +12,8 @@
12
12
  * @since 2.0.0
13
13
  * @experimental
14
14
  */
15
- import { formatPath, getIndent } from "../context";
16
- import { escapeString } from "../utils/code";
15
+ import { formatPath, getIndent } from "../context.js";
16
+ import { escapeString } from "../utils/code.js";
17
17
  // ============================================================================
18
18
  // Error messages (matching core/consts/messages.ts)
19
19
  // ============================================================================
@@ -13,8 +13,8 @@
13
13
  * @since 2.0.0
14
14
  * @experimental
15
15
  */
16
- import type { GeneratorContext } from "../../context";
17
- import { type CodeGenResult } from "../../utils/code";
16
+ import type { GeneratorContext } from "../../context.js";
17
+ import { type CodeGenResult } from "../../utils/code.js";
18
18
  /**
19
19
  * Array constraint metadata for JIT compilation.
20
20
  *
@@ -13,8 +13,8 @@
13
13
  * @since 2.0.0
14
14
  * @experimental
15
15
  */
16
- import { formatPath, getIndent, pushPath, nextVar, increaseIndent, } from "../../context";
17
- import { escapeString, debugComment } from "../../utils/code";
16
+ import { formatPath, getIndent, pushPath, nextVar, increaseIndent, } from "../../context.js";
17
+ import { escapeString, debugComment } from "../../utils/code.js";
18
18
  // ============================================================================
19
19
  // Type check generators
20
20
  // ============================================================================