elysia 2.0.0-beta.2 → 2.0.0-beta.20

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 (337) hide show
  1. package/dist/adapter/bun/index.d.ts +18 -2
  2. package/dist/adapter/bun/index.js +467 -110
  3. package/dist/adapter/bun/index.mjs +467 -112
  4. package/dist/adapter/types.d.ts +2 -21
  5. package/dist/adapter/utils.d.ts +14 -3
  6. package/dist/adapter/utils.js +146 -87
  7. package/dist/adapter/utils.mjs +148 -90
  8. package/dist/adapter/web-standard/handler.d.ts +1 -1
  9. package/dist/adapter/web-standard/handler.js +47 -36
  10. package/dist/adapter/web-standard/handler.mjs +48 -37
  11. package/dist/adapter/web-standard/index.js +2 -30
  12. package/dist/adapter/web-standard/index.mjs +2 -30
  13. package/dist/adapter/web-standard/utils.js +5 -18
  14. package/dist/adapter/web-standard/utils.mjs +5 -18
  15. package/dist/base.d.ts +99 -67
  16. package/dist/base.js +678 -510
  17. package/dist/base.mjs +682 -514
  18. package/dist/compile/aot-capture.d.ts +2 -13
  19. package/dist/compile/aot-capture.js +26 -69
  20. package/dist/compile/aot-capture.mjs +28 -67
  21. package/dist/compile/aot-emit.d.ts +9 -7
  22. package/dist/compile/aot-emit.js +42 -19
  23. package/dist/compile/aot-emit.mjs +42 -20
  24. package/dist/compile/aot.d.ts +11 -13
  25. package/dist/compile/aot.js +34 -46
  26. package/dist/compile/aot.mjs +35 -45
  27. package/dist/compile/handler/descriptor.d.ts +9 -12
  28. package/dist/compile/handler/descriptor.js +17 -41
  29. package/dist/compile/handler/descriptor.mjs +18 -39
  30. package/dist/compile/handler/frozen-validator.d.ts +5 -10
  31. package/dist/compile/handler/frozen-validator.js +55 -105
  32. package/dist/compile/handler/frozen-validator.mjs +53 -105
  33. package/dist/compile/handler/index.d.ts +6 -5
  34. package/dist/compile/handler/index.js +148 -109
  35. package/dist/compile/handler/index.mjs +149 -111
  36. package/dist/compile/handler/jit.d.ts +17 -17
  37. package/dist/compile/handler/jit.js +220 -148
  38. package/dist/compile/handler/jit.mjs +222 -151
  39. package/dist/compile/handler/params.d.ts +1 -4
  40. package/dist/compile/handler/params.js +10 -5
  41. package/dist/compile/handler/params.mjs +14 -8
  42. package/dist/compile/handler/reconstruct.d.ts +2 -2
  43. package/dist/compile/handler/reconstruct.js +4 -3
  44. package/dist/compile/handler/reconstruct.mjs +4 -3
  45. package/dist/compile/handler/static-clone-resolver.d.ts +6 -0
  46. package/dist/compile/handler/static-clone-resolver.js +8 -0
  47. package/dist/compile/handler/static-clone-resolver.mjs +7 -0
  48. package/dist/compile/handler/utils.d.ts +22 -11
  49. package/dist/compile/handler/utils.js +159 -253
  50. package/dist/compile/handler/utils.mjs +155 -252
  51. package/dist/compile/jit-probe.d.ts +2 -2
  52. package/dist/compile/jit-probe.js +2 -3
  53. package/dist/compile/jit-probe.mjs +2 -3
  54. package/dist/compile/lexer.d.ts +7 -4
  55. package/dist/compile/lexer.js +268 -6
  56. package/dist/compile/lexer.mjs +268 -4
  57. package/dist/compile/utils.js +7 -4
  58. package/dist/compile/utils.mjs +7 -4
  59. package/dist/compiled.d.ts +0 -1
  60. package/dist/compiled.js +0 -1
  61. package/dist/compiled.mjs +0 -1
  62. package/dist/context.d.ts +14 -4
  63. package/dist/context.js +17 -32
  64. package/dist/context.mjs +19 -34
  65. package/dist/cookie/config.d.ts +1 -0
  66. package/dist/cookie/config.js +9 -9
  67. package/dist/cookie/config.mjs +9 -9
  68. package/dist/cookie/cookie.d.ts +1 -1
  69. package/dist/cookie/cookie.js +8 -10
  70. package/dist/cookie/cookie.mjs +8 -10
  71. package/dist/cookie/crypto.d.ts +8 -7
  72. package/dist/cookie/crypto.js +51 -40
  73. package/dist/cookie/crypto.mjs +51 -41
  74. package/dist/cookie/error.d.ts +1 -2
  75. package/dist/cookie/error.js +6 -4
  76. package/dist/cookie/error.mjs +6 -4
  77. package/dist/cookie/lib.js +7 -2
  78. package/dist/cookie/lib.mjs +7 -2
  79. package/dist/cookie/serialize.js +1 -1
  80. package/dist/cookie/serialize.mjs +1 -1
  81. package/dist/cookie/types.d.ts +10 -0
  82. package/dist/cookie/utils.d.ts +4 -8
  83. package/dist/cookie/utils.js +86 -52
  84. package/dist/cookie/utils.mjs +89 -54
  85. package/dist/error.d.ts +113 -103
  86. package/dist/error.js +181 -117
  87. package/dist/error.mjs +179 -118
  88. package/dist/generation.d.ts +2 -2
  89. package/dist/handler/error.d.ts +26 -15
  90. package/dist/handler/error.js +77 -96
  91. package/dist/handler/error.mjs +74 -97
  92. package/dist/handler/fetch.js +87 -108
  93. package/dist/handler/fetch.mjs +89 -110
  94. package/dist/handler/utils.d.ts +12 -6
  95. package/dist/handler/utils.js +84 -28
  96. package/dist/handler/utils.mjs +80 -28
  97. package/dist/index.d.ts +12 -12
  98. package/dist/index.js +2 -9
  99. package/dist/index.mjs +1 -1
  100. package/dist/memory.js +1 -1
  101. package/dist/memory.mjs +1 -1
  102. package/dist/package.js +1 -1
  103. package/dist/package.mjs +1 -1
  104. package/dist/plugin/aot/bun.d.ts +8 -1
  105. package/dist/plugin/aot/bun.js +16 -9
  106. package/dist/plugin/aot/bun.mjs +17 -10
  107. package/dist/plugin/aot/core.d.ts +47 -60
  108. package/dist/plugin/aot/core.js +172 -109
  109. package/dist/plugin/aot/core.mjs +169 -111
  110. package/dist/plugin/aot/esbuild.js +8 -5
  111. package/dist/plugin/aot/esbuild.mjs +9 -6
  112. package/dist/plugin/aot/hooks.d.ts +6 -17
  113. package/dist/plugin/aot/hooks.js +36 -14
  114. package/dist/plugin/aot/hooks.mjs +37 -16
  115. package/dist/plugin/aot/rspack-loader.d.ts +1 -5
  116. package/dist/plugin/aot/rspack-loader.js +1 -10
  117. package/dist/plugin/aot/rspack-loader.mjs +1 -10
  118. package/dist/plugin/aot/rspack.js +2 -5
  119. package/dist/plugin/aot/rspack.mjs +3 -6
  120. package/dist/plugin/aot/source.d.ts +6 -42
  121. package/dist/plugin/aot/source.js +47 -62
  122. package/dist/plugin/aot/source.mjs +48 -63
  123. package/dist/plugin/aot/treeshake.js +2 -6
  124. package/dist/plugin/aot/treeshake.mjs +2 -6
  125. package/dist/plugin/aot/unplugin.d.ts +1 -4
  126. package/dist/plugin/aot/unplugin.js +4 -13
  127. package/dist/plugin/aot/unplugin.mjs +4 -13
  128. package/dist/plugin/aot/vite.d.ts +2 -6
  129. package/dist/plugin/aot/worker.js +2 -2
  130. package/dist/plugin/aot/worker.mjs +2 -2
  131. package/dist/plugin/auto-head.js +1 -10
  132. package/dist/plugin/auto-head.mjs +1 -10
  133. package/dist/plugin/trace.d.ts +2 -1
  134. package/dist/route-table.d.ts +3 -0
  135. package/dist/route-table.js +16 -11
  136. package/dist/route-table.mjs +16 -11
  137. package/dist/schema-snapshot.d.ts +0 -4
  138. package/dist/schema-snapshot.js +29 -47
  139. package/dist/schema-snapshot.mjs +29 -47
  140. package/dist/sucrose.d.ts +6 -55
  141. package/dist/sucrose.js +103 -731
  142. package/dist/sucrose.mjs +102 -724
  143. package/dist/trace.d.ts +5 -8
  144. package/dist/trace.js +23 -134
  145. package/dist/trace.mjs +24 -135
  146. package/dist/type/bridge-live.d.ts +4 -2
  147. package/dist/type/bridge-live.js +6 -3
  148. package/dist/type/bridge-live.mjs +4 -2
  149. package/dist/type/bridge.d.ts +6 -4
  150. package/dist/type/bridge.js +17 -9
  151. package/dist/type/bridge.mjs +5 -3
  152. package/dist/type/coerce-plan.d.ts +5 -5
  153. package/dist/type/coerce-plan.js +41 -39
  154. package/dist/type/coerce-plan.mjs +43 -39
  155. package/dist/type/coerce.d.ts +2 -6
  156. package/dist/type/coerce.js +18 -75
  157. package/dist/type/coerce.mjs +19 -76
  158. package/dist/type/compat.d.ts +3 -0
  159. package/dist/type/compat.js +23 -14
  160. package/dist/type/compat.mjs +20 -10
  161. package/dist/type/constants.d.ts +1 -1
  162. package/dist/type/elysia/array-buffer.d.ts +4 -1
  163. package/dist/type/elysia/array-buffer.js +17 -17
  164. package/dist/type/elysia/array-buffer.mjs +17 -17
  165. package/dist/type/elysia/array-string.js +2 -40
  166. package/dist/type/elysia/array-string.mjs +2 -39
  167. package/dist/type/elysia/array.js +5 -9
  168. package/dist/type/elysia/array.mjs +5 -9
  169. package/dist/type/elysia/boolean-string.js +2 -3
  170. package/dist/type/elysia/boolean-string.mjs +1 -1
  171. package/dist/type/elysia/boolean.js +3 -12
  172. package/dist/type/elysia/boolean.mjs +3 -11
  173. package/dist/type/elysia/cookie.d.ts +3 -4
  174. package/dist/type/elysia/cookie.js +5 -15
  175. package/dist/type/elysia/cookie.mjs +5 -15
  176. package/dist/type/elysia/date.js +13 -20
  177. package/dist/type/elysia/date.mjs +10 -16
  178. package/dist/type/elysia/file-type.d.ts +11 -4
  179. package/dist/type/elysia/file-type.js +17 -2
  180. package/dist/type/elysia/file-type.mjs +17 -3
  181. package/dist/type/elysia/file.d.ts +1 -3
  182. package/dist/type/elysia/file.js +11 -27
  183. package/dist/type/elysia/file.mjs +11 -12
  184. package/dist/type/elysia/files.js +7 -11
  185. package/dist/type/elysia/files.mjs +7 -10
  186. package/dist/type/elysia/form.js +2 -3
  187. package/dist/type/elysia/form.mjs +3 -3
  188. package/dist/type/elysia/integer-string.d.ts +1 -1
  189. package/dist/type/elysia/integer-string.js +4 -30
  190. package/dist/type/elysia/integer-string.mjs +5 -30
  191. package/dist/type/elysia/integer.js +3 -12
  192. package/dist/type/elysia/integer.mjs +3 -11
  193. package/dist/type/elysia/intersect.js +0 -5
  194. package/dist/type/elysia/intersect.mjs +0 -5
  195. package/dist/type/elysia/json-string.d.ts +7 -0
  196. package/dist/type/elysia/json-string.js +47 -0
  197. package/dist/type/elysia/json-string.mjs +46 -0
  198. package/dist/type/elysia/maybe-empty.js +3 -4
  199. package/dist/type/elysia/maybe-empty.mjs +1 -1
  200. package/dist/type/elysia/nullable.js +2 -3
  201. package/dist/type/elysia/nullable.mjs +1 -1
  202. package/dist/type/elysia/number.d.ts +2 -1
  203. package/dist/type/elysia/number.js +19 -11
  204. package/dist/type/elysia/number.mjs +18 -10
  205. package/dist/type/elysia/numeric-enum.d.ts +1 -1
  206. package/dist/type/elysia/numeric-enum.js +4 -5
  207. package/dist/type/elysia/numeric-enum.mjs +3 -3
  208. package/dist/type/elysia/numeric.d.ts +4 -2
  209. package/dist/type/elysia/numeric.js +20 -17
  210. package/dist/type/elysia/numeric.mjs +19 -16
  211. package/dist/type/elysia/object-string.js +2 -37
  212. package/dist/type/elysia/object-string.mjs +2 -36
  213. package/dist/type/elysia/object.js +5 -9
  214. package/dist/type/elysia/object.mjs +5 -9
  215. package/dist/type/elysia/optional.js +8 -8
  216. package/dist/type/elysia/optional.mjs +7 -7
  217. package/dist/type/elysia/problem.d.ts +20 -0
  218. package/dist/type/elysia/problem.js +25 -0
  219. package/dist/type/elysia/problem.mjs +24 -0
  220. package/dist/type/elysia/string.js +4 -3
  221. package/dist/type/elysia/string.mjs +4 -2
  222. package/dist/type/elysia/uint8-array.d.ts +1 -1
  223. package/dist/type/elysia/uint8-array.js +5 -20
  224. package/dist/type/elysia/uint8-array.mjs +5 -19
  225. package/dist/type/elysia/union-enum.js +7 -8
  226. package/dist/type/elysia/union-enum.mjs +6 -6
  227. package/dist/type/elysia/union.js +0 -5
  228. package/dist/type/elysia/union.mjs +0 -5
  229. package/dist/type/elysia/utils.d.ts +2 -4
  230. package/dist/type/elysia/utils.js +10 -21
  231. package/dist/type/elysia/utils.mjs +7 -15
  232. package/dist/type/exports.d.ts +3 -2
  233. package/dist/type/exports.js +13 -2
  234. package/dist/type/exports.mjs +10 -2
  235. package/dist/type/index.d.ts +10 -2
  236. package/dist/type/index.js +52 -15
  237. package/dist/type/index.mjs +55 -11
  238. package/dist/type/shared.d.ts +3 -9
  239. package/dist/type/shared.js +44 -97
  240. package/dist/type/shared.mjs +43 -97
  241. package/dist/type/sync-require.d.ts +11 -0
  242. package/dist/type/sync-require.js +14 -0
  243. package/dist/type/sync-require.mjs +12 -0
  244. package/dist/type/typebox-system-lite.d.ts +2 -0
  245. package/dist/type/typebox-system-lite.js +34 -0
  246. package/dist/type/typebox-system-lite.mjs +3 -0
  247. package/dist/type/typebox-system-require.d.ts +7 -0
  248. package/dist/type/typebox-system-require.js +24 -0
  249. package/dist/type/typebox-system-require.mjs +23 -0
  250. package/dist/type/typebox-type-live.d.ts +11 -0
  251. package/dist/type/typebox-type-live.js +37 -0
  252. package/dist/type/typebox-type-live.mjs +20 -0
  253. package/dist/type/typebox-type.d.ts +26 -0
  254. package/dist/type/typebox-type.js +135 -0
  255. package/dist/type/typebox-type.mjs +70 -0
  256. package/dist/type/typebox-value-live.d.ts +11 -0
  257. package/dist/type/typebox-value-live.js +31 -0
  258. package/dist/type/typebox-value-live.mjs +13 -0
  259. package/dist/type/typebox-value-ops.d.ts +4 -0
  260. package/dist/type/typebox-value-ops.js +90 -0
  261. package/dist/type/typebox-value-ops.mjs +5 -0
  262. package/dist/type/typebox-value-require.d.ts +8 -0
  263. package/dist/type/typebox-value-require.js +28 -0
  264. package/dist/type/typebox-value-require.mjs +25 -0
  265. package/dist/type/typebox-value.d.ts +35 -0
  266. package/dist/type/typebox-value.js +161 -0
  267. package/dist/type/typebox-value.mjs +74 -0
  268. package/dist/type/utils.js +1 -10
  269. package/dist/type/utils.mjs +1 -10
  270. package/dist/type/validator/clean-safe.d.ts +2 -4
  271. package/dist/type/validator/clean-safe.js +15 -11
  272. package/dist/type/validator/clean-safe.mjs +16 -10
  273. package/dist/type/validator/custom-error.js +12 -16
  274. package/dist/type/validator/custom-error.mjs +11 -14
  275. package/dist/type/validator/default-precompute.d.ts +9 -1
  276. package/dist/type/validator/default-precompute.js +40 -77
  277. package/dist/type/validator/default-precompute.mjs +37 -74
  278. package/dist/type/validator/exact-mirror-live.d.ts +8 -0
  279. package/dist/type/validator/exact-mirror-live.js +22 -0
  280. package/dist/type/validator/exact-mirror-live.mjs +17 -0
  281. package/dist/type/validator/exact-mirror-require.d.ts +4 -0
  282. package/dist/type/validator/exact-mirror-require.js +11 -0
  283. package/dist/type/validator/exact-mirror-require.mjs +9 -0
  284. package/dist/type/validator/exact-mirror.js +8 -8
  285. package/dist/type/validator/exact-mirror.mjs +9 -8
  286. package/dist/type/validator/frozen-check.js +5 -6
  287. package/dist/type/validator/frozen-check.mjs +6 -7
  288. package/dist/type/validator/index.d.ts +1 -0
  289. package/dist/type/validator/index.js +169 -166
  290. package/dist/type/validator/index.mjs +162 -158
  291. package/dist/type/validator/string-codec-aot.d.ts +2 -1
  292. package/dist/type/validator/string-codec-aot.js +8 -2
  293. package/dist/type/validator/string-codec-aot.mjs +7 -2
  294. package/dist/type/validator/validator-cache.d.ts +5 -4
  295. package/dist/type/validator/validator-cache.js +41 -24
  296. package/dist/type/validator/validator-cache.mjs +40 -22
  297. package/dist/types.d.ts +261 -94
  298. package/dist/universal/constants.d.ts +2 -1
  299. package/dist/universal/constants.js +3 -1
  300. package/dist/universal/constants.mjs +2 -1
  301. package/dist/universal/env.js +2 -3
  302. package/dist/universal/env.mjs +2 -3
  303. package/dist/universal/file.d.ts +6 -4
  304. package/dist/universal/file.js +11 -16
  305. package/dist/universal/file.mjs +12 -16
  306. package/dist/universal/index.d.ts +2 -2
  307. package/dist/universal/is-production.d.ts +1 -2
  308. package/dist/universal/is-production.js +1 -3
  309. package/dist/universal/is-production.mjs +2 -3
  310. package/dist/universal/server.d.ts +0 -272
  311. package/dist/utils.d.ts +41 -7
  312. package/dist/utils.js +158 -126
  313. package/dist/utils.mjs +147 -126
  314. package/dist/validator/index.d.ts +1 -1
  315. package/dist/validator/index.js +17 -30
  316. package/dist/validator/index.mjs +18 -31
  317. package/dist/validator/route.js +2 -1
  318. package/dist/validator/route.mjs +2 -1
  319. package/dist/ws/context.d.ts +8 -1
  320. package/dist/ws/context.js +68 -44
  321. package/dist/ws/context.mjs +67 -44
  322. package/dist/ws/parser.js +10 -20
  323. package/dist/ws/parser.mjs +10 -20
  324. package/dist/ws/route.d.ts +2 -2
  325. package/dist/ws/route.js +219 -139
  326. package/dist/ws/route.mjs +223 -143
  327. package/dist/ws/types.d.ts +2 -2
  328. package/package.json +23 -49
  329. package/dist/compile/analysis-cache.d.ts +0 -6
  330. package/dist/compile/analysis-cache.js +0 -12
  331. package/dist/compile/analysis-cache.mjs +0 -11
  332. package/dist/cookie/index.d.ts +0 -7
  333. package/dist/cookie/index.js +0 -13
  334. package/dist/cookie/index.mjs +0 -7
  335. package/dist/handler/index.d.ts +0 -2
  336. package/dist/handler/index.js +0 -5
  337. package/dist/handler/index.mjs +0 -3
@@ -0,0 +1,34 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../_virtual/_rolldown/runtime.js');
3
+ let typebox_system = require("typebox/system");
4
+
5
+ Object.defineProperty(exports, 'Arguments', {
6
+ enumerable: true,
7
+ get: function () {
8
+ return typebox_system.Arguments;
9
+ }
10
+ });
11
+ Object.defineProperty(exports, 'Environment', {
12
+ enumerable: true,
13
+ get: function () {
14
+ return typebox_system.Environment;
15
+ }
16
+ });
17
+ Object.defineProperty(exports, 'Hashing', {
18
+ enumerable: true,
19
+ get: function () {
20
+ return typebox_system.Hashing;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, 'Memory', {
24
+ enumerable: true,
25
+ get: function () {
26
+ return typebox_system.Memory;
27
+ }
28
+ });
29
+ Object.defineProperty(exports, 'Settings', {
30
+ enumerable: true,
31
+ get: function () {
32
+ return typebox_system.Settings;
33
+ }
34
+ });
@@ -0,0 +1,3 @@
1
+ import { Arguments, Environment, Hashing, Memory, Settings } from "typebox/system";
2
+
3
+ export { Arguments, Environment, Hashing, Memory, Settings };
@@ -0,0 +1,7 @@
1
+ import { TypeboxTypeNamespaces } from "./typebox-type.js";
2
+ import { System } from "typebox/system";
3
+
4
+ //#region src/type/typebox-system-require.d.ts
5
+ declare const typeSystem: (system: TypeboxTypeNamespaces["system"]) => typeof System;
6
+ //#endregion
7
+ export { typeSystem };
@@ -0,0 +1,24 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_type_sync_require = require('./sync-require.js');
3
+
4
+ //#region src/type/typebox-system-require.ts
5
+ const requireLocale = () => {
6
+ try {
7
+ const req = require_type_sync_require.syncRequire({}, require("url").pathToFileURL(__filename).href);
8
+ if (req) return req("typebox/system").System.Locale;
9
+ } catch {}
10
+ throw new Error("TypeSystem.Locale isn't bundled: it carries every locale table. Register it with setupTypebox({ typebox: { type, system } }) using `import * as system from 'typebox/system'`, or build with `aot(entry)`.");
11
+ };
12
+ const typeSystem = (system) => system.System ?? Object.defineProperty({
13
+ Arguments: system.Arguments,
14
+ Environment: system.Environment,
15
+ Hashing: system.Hashing,
16
+ Memory: system.Memory,
17
+ Settings: system.Settings
18
+ }, "Locale", {
19
+ get: requireLocale,
20
+ enumerable: true
21
+ });
22
+
23
+ //#endregion
24
+ exports.typeSystem = typeSystem;
@@ -0,0 +1,23 @@
1
+ import { syncRequire } from "./sync-require.mjs";
2
+
3
+ //#region src/type/typebox-system-require.ts
4
+ const requireLocale = () => {
5
+ try {
6
+ const req = syncRequire(import.meta, import.meta.url);
7
+ if (req) return req("typebox/system").System.Locale;
8
+ } catch {}
9
+ throw new Error("TypeSystem.Locale isn't bundled: it carries every locale table. Register it with setupTypebox({ typebox: { type, system } }) using `import * as system from 'typebox/system'`, or build with `aot(entry)`.");
10
+ };
11
+ const typeSystem = (system) => system.System ?? Object.defineProperty({
12
+ Arguments: system.Arguments,
13
+ Environment: system.Environment,
14
+ Hashing: system.Hashing,
15
+ Memory: system.Memory,
16
+ Settings: system.Settings
17
+ }, "Locale", {
18
+ get: requireLocale,
19
+ enumerable: true
20
+ });
21
+
22
+ //#endregion
23
+ export { typeSystem };
@@ -0,0 +1,11 @@
1
+ import { TypeboxTypeNamespaces } from "./typebox-type.js";
2
+ import { Codec, Decode, Evaluate, Intersect, Module, Null, Ref, Refine, Undefined, Unsafe } from "typebox/type";
3
+
4
+ //#region src/type/typebox-type-live.d.ts
5
+ declare function injectTypeboxType(typebox?: TypeboxTypeNamespaces): void;
6
+ declare const loadTypeNamespace: () => TypeboxTypeNamespaces;
7
+ declare function markTypeUsed(): void;
8
+ declare const isTypeUsed: () => boolean;
9
+ declare const isTypeNamespaceLoaded: () => boolean;
10
+ //#endregion
11
+ export { Codec, Decode, Evaluate, Intersect, Module, Null, Ref, Refine, type TypeboxTypeNamespaces, Undefined, Unsafe, injectTypeboxType, isTypeNamespaceLoaded, isTypeUsed, loadTypeNamespace, markTypeUsed };
@@ -0,0 +1,37 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../_virtual/_rolldown/runtime.js');
3
+ let typebox_type = require("typebox/type");
4
+ typebox_type = require_runtime.__toESM(typebox_type);
5
+ let src_type_typebox_system_lite = require("./typebox-system-lite.mjs");
6
+ src_type_typebox_system_lite = require_runtime.__toESM(src_type_typebox_system_lite);
7
+
8
+ //#region src/type/typebox-type-live.ts
9
+ src_type_typebox_system_lite.Settings.Set({ unionPrioritySort: false });
10
+ let namespaces = {
11
+ type: typebox_type,
12
+ system: src_type_typebox_system_lite
13
+ };
14
+ function injectTypeboxType(typebox) {
15
+ if (typebox) namespaces = typebox;
16
+ }
17
+ const loadTypeNamespace = () => namespaces;
18
+ function markTypeUsed() {}
19
+ const isTypeUsed = () => true;
20
+ const isTypeNamespaceLoaded = () => true;
21
+
22
+ //#endregion
23
+ exports.Codec = typebox_type.Codec;
24
+ exports.Decode = typebox_type.Decode;
25
+ exports.Evaluate = typebox_type.Evaluate;
26
+ exports.Intersect = typebox_type.Intersect;
27
+ exports.Module = typebox_type.Module;
28
+ exports.Null = typebox_type.Null;
29
+ exports.Ref = typebox_type.Ref;
30
+ exports.Refine = typebox_type.Refine;
31
+ exports.Undefined = typebox_type.Undefined;
32
+ exports.Unsafe = typebox_type.Unsafe;
33
+ exports.injectTypeboxType = injectTypeboxType;
34
+ exports.isTypeNamespaceLoaded = isTypeNamespaceLoaded;
35
+ exports.isTypeUsed = isTypeUsed;
36
+ exports.loadTypeNamespace = loadTypeNamespace;
37
+ exports.markTypeUsed = markTypeUsed;
@@ -0,0 +1,20 @@
1
+ import * as type from "typebox/type";
2
+ import { Codec, Decode, Evaluate, Intersect, Module, Null, Ref, Refine, Undefined, Unsafe } from "typebox/type";
3
+ import * as system from "./typebox-system-lite.mjs";
4
+
5
+ //#region src/type/typebox-type-live.ts
6
+ system.Settings.Set({ unionPrioritySort: false });
7
+ let namespaces = {
8
+ type,
9
+ system
10
+ };
11
+ function injectTypeboxType(typebox) {
12
+ if (typebox) namespaces = typebox;
13
+ }
14
+ const loadTypeNamespace = () => namespaces;
15
+ function markTypeUsed() {}
16
+ const isTypeUsed = () => true;
17
+ const isTypeNamespaceLoaded = () => true;
18
+
19
+ //#endregion
20
+ export { Codec, Decode, Evaluate, Intersect, Module, Null, Ref, Refine, Undefined, Unsafe, injectTypeboxType, isTypeNamespaceLoaded, isTypeUsed, loadTypeNamespace, markTypeUsed };
@@ -0,0 +1,26 @@
1
+ import * as _$typebox_type0 from "typebox/type";
2
+ import { Codec as Codec$1, Decode as Decode$1, Evaluate as Evaluate$1, Intersect as Intersect$1, Module as Module$1, Null as Null$1, Ref as Ref$1, Refine as Refine$1, Undefined as Undefined$1, Unsafe as Unsafe$1 } from "typebox/type";
3
+ import * as _$typebox_system0 from "typebox/system";
4
+
5
+ //#region src/type/typebox-type.d.ts
6
+ interface TypeboxTypeNamespaces {
7
+ type: typeof _$typebox_type0;
8
+ system: Pick<typeof _$typebox_system0, 'Arguments' | 'Environment' | 'Hashing' | 'Memory' | 'Settings'> & Partial<Pick<typeof _$typebox_system0, 'System'>>;
9
+ }
10
+ declare const loadTypeNamespace: () => TypeboxTypeNamespaces;
11
+ declare const markTypeUsed: () => void;
12
+ declare const isTypeUsed: () => boolean;
13
+ declare const isTypeNamespaceLoaded: () => boolean;
14
+ declare let Codec: typeof Codec$1;
15
+ declare let Decode: typeof Decode$1;
16
+ declare let Evaluate: typeof Evaluate$1;
17
+ declare let Intersect: typeof Intersect$1;
18
+ declare let Module: typeof Module$1;
19
+ declare let Null: typeof Null$1;
20
+ declare let Ref: typeof Ref$1;
21
+ declare let Refine: typeof Refine$1;
22
+ declare let Undefined: typeof Undefined$1;
23
+ declare let Unsafe: typeof Unsafe$1;
24
+ declare function injectTypeboxType(typebox: TypeboxTypeNamespaces): void;
25
+ //#endregion
26
+ export { Codec, Decode, Evaluate, Intersect, Module, Null, Ref, Refine, TypeboxTypeNamespaces, Undefined, Unsafe, injectTypeboxType, isTypeNamespaceLoaded, isTypeUsed, loadTypeNamespace, markTypeUsed };
@@ -0,0 +1,135 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_type_sync_require = require('./sync-require.js');
3
+
4
+ //#region src/type/typebox-type.ts
5
+ let namespaces;
6
+ /**
7
+ * Loads `typebox/type` + `typebox/system` on first use
8
+ *
9
+ * separate from `typebox-value` (type ⊂ value)
10
+ * sharing one would make a single `t.Date()` drag the whole value graph in
11
+ */
12
+ function load() {
13
+ if (namespaces) return namespaces;
14
+ injectTypeboxType(resolveNamespaces());
15
+ return namespaces;
16
+ }
17
+ function resolveNamespaces() {
18
+ if (typeof require === "function") try {
19
+ return {
20
+ type: require("typebox/type"),
21
+ system: require("./typebox-system-lite.mjs")
22
+ };
23
+ } catch {}
24
+ const req = require_type_sync_require.syncRequire({}, require("url").pathToFileURL(__filename).href);
25
+ if (!req) throw new Error("TypeBox couldn't be loaded: this runtime has no synchronous module loader. Build with the AOT plugin ('elysia/plugin/aot') so TypeBox is wired statically, or register it manually with setupTypebox({ typebox: { type, system } }).");
26
+ return {
27
+ type: req("typebox/type"),
28
+ system: req("typebox/system")
29
+ };
30
+ }
31
+ const loadTypeNamespace = () => namespaces ?? load();
32
+ let typeUsed = false;
33
+ const markTypeUsed = () => {
34
+ typeUsed = true;
35
+ };
36
+ const isTypeUsed = () => typeUsed || namespaces !== void 0;
37
+ const isTypeNamespaceLoaded = () => namespaces !== void 0;
38
+ function stub(get) {
39
+ return function(...args) {
40
+ load();
41
+ return get()(...args);
42
+ };
43
+ }
44
+ let Codec = stub(() => Codec);
45
+ let Decode = stub(() => Decode);
46
+ let Evaluate = stub(() => Evaluate);
47
+ let Intersect = stub(() => Intersect);
48
+ let Module = stub(() => Module);
49
+ let Null = stub(() => Null);
50
+ let Ref = stub(() => Ref);
51
+ let Refine = stub(() => Refine);
52
+ let Undefined = stub(() => Undefined);
53
+ let Unsafe = stub(() => Unsafe);
54
+ function injectTypeboxType(typebox) {
55
+ const first = namespaces === void 0;
56
+ namespaces = typebox;
57
+ Codec = typebox.type.Codec;
58
+ Decode = typebox.type.Decode;
59
+ Evaluate = typebox.type.Evaluate;
60
+ Intersect = typebox.type.Intersect;
61
+ Module = typebox.type.Module;
62
+ Null = typebox.type.Null;
63
+ Ref = typebox.type.Ref;
64
+ Refine = typebox.type.Refine;
65
+ Undefined = typebox.type.Undefined;
66
+ Unsafe = typebox.type.Unsafe;
67
+ if (first) typebox.system.Settings.Set({ unionPrioritySort: false });
68
+ }
69
+
70
+ //#endregion
71
+ Object.defineProperty(exports, 'Codec', {
72
+ enumerable: true,
73
+ get: function () {
74
+ return Codec;
75
+ }
76
+ });
77
+ Object.defineProperty(exports, 'Decode', {
78
+ enumerable: true,
79
+ get: function () {
80
+ return Decode;
81
+ }
82
+ });
83
+ Object.defineProperty(exports, 'Evaluate', {
84
+ enumerable: true,
85
+ get: function () {
86
+ return Evaluate;
87
+ }
88
+ });
89
+ Object.defineProperty(exports, 'Intersect', {
90
+ enumerable: true,
91
+ get: function () {
92
+ return Intersect;
93
+ }
94
+ });
95
+ Object.defineProperty(exports, 'Module', {
96
+ enumerable: true,
97
+ get: function () {
98
+ return Module;
99
+ }
100
+ });
101
+ Object.defineProperty(exports, 'Null', {
102
+ enumerable: true,
103
+ get: function () {
104
+ return Null;
105
+ }
106
+ });
107
+ Object.defineProperty(exports, 'Ref', {
108
+ enumerable: true,
109
+ get: function () {
110
+ return Ref;
111
+ }
112
+ });
113
+ Object.defineProperty(exports, 'Refine', {
114
+ enumerable: true,
115
+ get: function () {
116
+ return Refine;
117
+ }
118
+ });
119
+ Object.defineProperty(exports, 'Undefined', {
120
+ enumerable: true,
121
+ get: function () {
122
+ return Undefined;
123
+ }
124
+ });
125
+ Object.defineProperty(exports, 'Unsafe', {
126
+ enumerable: true,
127
+ get: function () {
128
+ return Unsafe;
129
+ }
130
+ });
131
+ exports.injectTypeboxType = injectTypeboxType;
132
+ exports.isTypeNamespaceLoaded = isTypeNamespaceLoaded;
133
+ exports.isTypeUsed = isTypeUsed;
134
+ exports.loadTypeNamespace = loadTypeNamespace;
135
+ exports.markTypeUsed = markTypeUsed;
@@ -0,0 +1,70 @@
1
+ import { syncRequire } from "./sync-require.mjs";
2
+
3
+ //#region src/type/typebox-type.ts
4
+ let namespaces;
5
+ /**
6
+ * Loads `typebox/type` + `typebox/system` on first use
7
+ *
8
+ * separate from `typebox-value` (type ⊂ value)
9
+ * sharing one would make a single `t.Date()` drag the whole value graph in
10
+ */
11
+ function load() {
12
+ if (namespaces) return namespaces;
13
+ injectTypeboxType(resolveNamespaces());
14
+ return namespaces;
15
+ }
16
+ function resolveNamespaces() {
17
+ if (typeof require === "function") try {
18
+ return {
19
+ type: require("typebox/type"),
20
+ system: require("./typebox-system-lite.mjs")
21
+ };
22
+ } catch {}
23
+ const req = syncRequire(import.meta, import.meta.url);
24
+ if (!req) throw new Error("TypeBox couldn't be loaded: this runtime has no synchronous module loader. Build with the AOT plugin ('elysia/plugin/aot') so TypeBox is wired statically, or register it manually with setupTypebox({ typebox: { type, system } }).");
25
+ return {
26
+ type: req("typebox/type"),
27
+ system: req("typebox/system")
28
+ };
29
+ }
30
+ const loadTypeNamespace = () => namespaces ?? load();
31
+ let typeUsed = false;
32
+ const markTypeUsed = () => {
33
+ typeUsed = true;
34
+ };
35
+ const isTypeUsed = () => typeUsed || namespaces !== void 0;
36
+ const isTypeNamespaceLoaded = () => namespaces !== void 0;
37
+ function stub(get) {
38
+ return function(...args) {
39
+ load();
40
+ return get()(...args);
41
+ };
42
+ }
43
+ let Codec = stub(() => Codec);
44
+ let Decode = stub(() => Decode);
45
+ let Evaluate = stub(() => Evaluate);
46
+ let Intersect = stub(() => Intersect);
47
+ let Module = stub(() => Module);
48
+ let Null = stub(() => Null);
49
+ let Ref = stub(() => Ref);
50
+ let Refine = stub(() => Refine);
51
+ let Undefined = stub(() => Undefined);
52
+ let Unsafe = stub(() => Unsafe);
53
+ function injectTypeboxType(typebox) {
54
+ const first = namespaces === void 0;
55
+ namespaces = typebox;
56
+ Codec = typebox.type.Codec;
57
+ Decode = typebox.type.Decode;
58
+ Evaluate = typebox.type.Evaluate;
59
+ Intersect = typebox.type.Intersect;
60
+ Module = typebox.type.Module;
61
+ Null = typebox.type.Null;
62
+ Ref = typebox.type.Ref;
63
+ Refine = typebox.type.Refine;
64
+ Undefined = typebox.type.Undefined;
65
+ Unsafe = typebox.type.Unsafe;
66
+ if (first) typebox.system.Settings.Set({ unionPrioritySort: false });
67
+ }
68
+
69
+ //#endregion
70
+ export { Codec, Decode, Evaluate, Intersect, Module, Null, Ref, Refine, Undefined, Unsafe, injectTypeboxType, isTypeNamespaceLoaded, isTypeUsed, loadTypeNamespace, markTypeUsed };
@@ -0,0 +1,11 @@
1
+ import { TypeboxNamespaces } from "./typebox-value.js";
2
+ import { Build, Compile as SchemaCompile } from "typebox/schema";
3
+ import { Check, Clean, Clone, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec } from "typebox/value";
4
+ import { Compile } from "typebox/compile";
5
+
6
+ //#region src/type/typebox-value-live.d.ts
7
+ declare function injectTypebox(_typebox?: TypeboxNamespaces): void;
8
+ declare function warmTypebox(): void;
9
+ declare function preloadTypebox(): Promise<void> | undefined;
10
+ //#endregion
11
+ export { Build, Check, Clean, Clone, Compile, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec, SchemaCompile, type TypeboxNamespaces, injectTypebox, preloadTypebox, warmTypebox };
@@ -0,0 +1,31 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../_virtual/_rolldown/runtime.js');
3
+ let typebox_schema = require("typebox/schema");
4
+ let typebox_value = require("typebox/value");
5
+ let typebox_compile = require("typebox/compile");
6
+ let typebox_system = require("typebox/system");
7
+
8
+ //#region src/type/typebox-value-live.ts
9
+ typebox_system.Settings.Set({ unionPrioritySort: false });
10
+ function injectTypebox(_typebox) {}
11
+ function warmTypebox() {}
12
+ function preloadTypebox() {}
13
+
14
+ //#endregion
15
+ exports.Build = typebox_schema.Build;
16
+ exports.Check = typebox_value.Check;
17
+ exports.Clean = typebox_value.Clean;
18
+ exports.Clone = typebox_value.Clone;
19
+ exports.Compile = typebox_compile.Compile;
20
+ exports.Create = typebox_value.Create;
21
+ exports.Decode = typebox_value.Decode;
22
+ exports.DecodeUnsafe = typebox_value.DecodeUnsafe;
23
+ exports.Default = typebox_value.Default;
24
+ exports.Encode = typebox_value.Encode;
25
+ exports.EncodeUnsafe = typebox_value.EncodeUnsafe;
26
+ exports.Errors = typebox_value.Errors;
27
+ exports.HasCodec = typebox_value.HasCodec;
28
+ exports.SchemaCompile = typebox_schema.Compile;
29
+ exports.injectTypebox = injectTypebox;
30
+ exports.preloadTypebox = preloadTypebox;
31
+ exports.warmTypebox = warmTypebox;
@@ -0,0 +1,13 @@
1
+ import { Build, Compile as SchemaCompile } from "typebox/schema";
2
+ import { Check, Clean, Clone, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec } from "typebox/value";
3
+ import { Compile } from "typebox/compile";
4
+ import { Settings } from "typebox/system";
5
+
6
+ //#region src/type/typebox-value-live.ts
7
+ Settings.Set({ unionPrioritySort: false });
8
+ function injectTypebox(_typebox) {}
9
+ function warmTypebox() {}
10
+ function preloadTypebox() {}
11
+
12
+ //#endregion
13
+ export { Build, Check, Clean, Clone, Compile, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec, SchemaCompile, injectTypebox, preloadTypebox, warmTypebox };
@@ -0,0 +1,4 @@
1
+ import { Build, Compile as SchemaCompile } from "typebox/schema";
2
+ import { Check, Clean, Clone, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec } from "typebox/value";
3
+ import { Compile } from "typebox/compile";
4
+ export { Build, Check, Clean, Clone, Compile, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec, SchemaCompile };
@@ -0,0 +1,90 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../_virtual/_rolldown/runtime.js');
3
+ let typebox_schema = require("typebox/schema");
4
+ let typebox_value = require("typebox/value");
5
+ let typebox_compile = require("typebox/compile");
6
+
7
+ Object.defineProperty(exports, 'Build', {
8
+ enumerable: true,
9
+ get: function () {
10
+ return typebox_schema.Build;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, 'Check', {
14
+ enumerable: true,
15
+ get: function () {
16
+ return typebox_value.Check;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, 'Clean', {
20
+ enumerable: true,
21
+ get: function () {
22
+ return typebox_value.Clean;
23
+ }
24
+ });
25
+ Object.defineProperty(exports, 'Clone', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return typebox_value.Clone;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, 'Compile', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return typebox_compile.Compile;
35
+ }
36
+ });
37
+ Object.defineProperty(exports, 'Create', {
38
+ enumerable: true,
39
+ get: function () {
40
+ return typebox_value.Create;
41
+ }
42
+ });
43
+ Object.defineProperty(exports, 'Decode', {
44
+ enumerable: true,
45
+ get: function () {
46
+ return typebox_value.Decode;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, 'DecodeUnsafe', {
50
+ enumerable: true,
51
+ get: function () {
52
+ return typebox_value.DecodeUnsafe;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, 'Default', {
56
+ enumerable: true,
57
+ get: function () {
58
+ return typebox_value.Default;
59
+ }
60
+ });
61
+ Object.defineProperty(exports, 'Encode', {
62
+ enumerable: true,
63
+ get: function () {
64
+ return typebox_value.Encode;
65
+ }
66
+ });
67
+ Object.defineProperty(exports, 'EncodeUnsafe', {
68
+ enumerable: true,
69
+ get: function () {
70
+ return typebox_value.EncodeUnsafe;
71
+ }
72
+ });
73
+ Object.defineProperty(exports, 'Errors', {
74
+ enumerable: true,
75
+ get: function () {
76
+ return typebox_value.Errors;
77
+ }
78
+ });
79
+ Object.defineProperty(exports, 'HasCodec', {
80
+ enumerable: true,
81
+ get: function () {
82
+ return typebox_value.HasCodec;
83
+ }
84
+ });
85
+ Object.defineProperty(exports, 'SchemaCompile', {
86
+ enumerable: true,
87
+ get: function () {
88
+ return typebox_schema.Compile;
89
+ }
90
+ });
@@ -0,0 +1,5 @@
1
+ import { Build, Compile as SchemaCompile } from "typebox/schema";
2
+ import { Check, Clean, Clone, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec } from "typebox/value";
3
+ import { Compile } from "typebox/compile";
4
+
5
+ export { Build, Check, Clean, Clone, Compile, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec, SchemaCompile };
@@ -0,0 +1,8 @@
1
+ import { TypeboxTypeNamespaces } from "./typebox-type.js";
2
+ import { TypeboxNamespaces } from "./typebox-value.js";
3
+
4
+ //#region src/type/typebox-value-require.d.ts
5
+ declare const requireTypebox: () => TypeboxNamespaces | undefined;
6
+ declare const importTypebox: () => Promise<[TypeboxTypeNamespaces, TypeboxNamespaces]> | undefined;
7
+ //#endregion
8
+ export { importTypebox, requireTypebox };
@@ -0,0 +1,28 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ //#region src/type/typebox-value-require.ts
4
+ const fromOps = (ops) => ({
5
+ value: ops,
6
+ schema: {
7
+ Compile: ops.SchemaCompile,
8
+ Build: ops.Build
9
+ },
10
+ compile: { Compile: ops.Compile }
11
+ });
12
+ const requireTypebox = () => {
13
+ if (typeof require === "function") try {
14
+ return fromOps(require("./typebox-value-ops.mjs"));
15
+ } catch {}
16
+ };
17
+ const importTypebox = () => Promise.all([
18
+ import("typebox/type"),
19
+ import("./typebox-system-lite.mjs"),
20
+ import("./typebox-value-ops.mjs")
21
+ ]).then(([type, system, ops]) => [{
22
+ type,
23
+ system
24
+ }, fromOps(ops)]);
25
+
26
+ //#endregion
27
+ exports.importTypebox = importTypebox;
28
+ exports.requireTypebox = requireTypebox;
@@ -0,0 +1,25 @@
1
+ //#region src/type/typebox-value-require.ts
2
+ const fromOps = (ops) => ({
3
+ value: ops,
4
+ schema: {
5
+ Compile: ops.SchemaCompile,
6
+ Build: ops.Build
7
+ },
8
+ compile: { Compile: ops.Compile }
9
+ });
10
+ const requireTypebox = () => {
11
+ if (typeof require === "function") try {
12
+ return fromOps(require("./typebox-value-ops.mjs"));
13
+ } catch {}
14
+ };
15
+ const importTypebox = () => Promise.all([
16
+ import("typebox/type"),
17
+ import("./typebox-system-lite.mjs"),
18
+ import("./typebox-value-ops.mjs")
19
+ ]).then(([type, system, ops]) => [{
20
+ type,
21
+ system
22
+ }, fromOps(ops)]);
23
+
24
+ //#endregion
25
+ export { importTypebox, requireTypebox };
@@ -0,0 +1,35 @@
1
+ import * as _$typebox_schema0 from "typebox/schema";
2
+ import { Build as Build$1, Compile as Compile$1 } from "typebox/schema";
3
+ import * as _$typebox_value0 from "typebox/value";
4
+ import { Check as Check$1, Clean as Clean$1, Clone as Clone$1, Create as Create$1, Decode as Decode$1, DecodeUnsafe as DecodeUnsafe$1, Default as Default$1, Encode as Encode$1, EncodeUnsafe as EncodeUnsafe$1, Errors as Errors$1, HasCodec as HasCodec$1 } from "typebox/value";
5
+ import * as _$typebox_compile0 from "typebox/compile";
6
+ import { Compile as Compile$2 } from "typebox/compile";
7
+
8
+ //#region src/type/typebox-value.d.ts
9
+ interface TypeboxNamespaces {
10
+ value: Pick<typeof _$typebox_value0, 'Check' | 'Clean' | 'Clone' | 'Create' | 'Decode' | 'DecodeUnsafe' | 'Default' | 'Encode' | 'EncodeUnsafe' | 'Errors' | 'HasCodec'>;
11
+ schema: Pick<typeof _$typebox_schema0, 'Compile' | 'Build'>;
12
+ compile: Pick<typeof _$typebox_compile0, 'Compile'>;
13
+ }
14
+ /**
15
+ * Loads `typebox/value` + `typebox/schema` + `typebox/compile` on first use
16
+ */
17
+ declare function load(): void;
18
+ declare function preloadTypebox(): Promise<void> | undefined;
19
+ declare let Check: typeof Check$1;
20
+ declare let Clean: typeof Clean$1;
21
+ declare let Clone: typeof Clone$1;
22
+ declare let Create: typeof Create$1;
23
+ declare let Decode: typeof Decode$1;
24
+ declare let DecodeUnsafe: typeof DecodeUnsafe$1;
25
+ declare let Default: typeof Default$1;
26
+ declare let Encode: typeof Encode$1;
27
+ declare let EncodeUnsafe: typeof EncodeUnsafe$1;
28
+ declare let Errors: typeof Errors$1;
29
+ declare let HasCodec: typeof HasCodec$1;
30
+ declare let SchemaCompile: typeof Compile$1;
31
+ declare let Build: typeof Build$1;
32
+ declare let Compile: typeof Compile$2;
33
+ declare function injectTypebox(typebox: TypeboxNamespaces): void;
34
+ //#endregion
35
+ export { Build, Check, Clean, Clone, Compile, Create, Decode, DecodeUnsafe, Default, Encode, EncodeUnsafe, Errors, HasCodec, SchemaCompile, TypeboxNamespaces, injectTypebox, preloadTypebox, load as warmTypebox };