@sinclair/typebox 0.32.0-dev-17 → 0.32.0-dev-18

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 (467) hide show
  1. package/build/import/compiler/compiler.mjs +0 -27
  2. package/build/import/compiler/index.mjs +0 -27
  3. package/build/import/errors/errors.mjs +0 -27
  4. package/build/import/errors/function.mjs +0 -27
  5. package/build/import/errors/index.mjs +0 -27
  6. package/build/import/index.mjs +0 -27
  7. package/build/import/system/index.mjs +0 -27
  8. package/build/import/system/policy.mjs +0 -27
  9. package/build/import/system/system.mjs +0 -27
  10. package/build/import/type/any/any.mjs +0 -27
  11. package/build/import/type/any/index.mjs +0 -27
  12. package/build/import/type/array/array.mjs +0 -27
  13. package/build/import/type/array/index.mjs +0 -27
  14. package/build/import/type/async-iterator/async-iterator.mjs +0 -27
  15. package/build/import/type/async-iterator/index.mjs +0 -27
  16. package/build/import/type/awaited/awaited.d.mts +6 -6
  17. package/build/import/type/awaited/awaited.mjs +13 -40
  18. package/build/import/type/awaited/index.mjs +0 -27
  19. package/build/import/type/bigint/bigint.mjs +0 -27
  20. package/build/import/type/bigint/index.mjs +0 -27
  21. package/build/import/type/boolean/boolean.mjs +0 -27
  22. package/build/import/type/boolean/index.mjs +0 -27
  23. package/build/import/type/clone/index.mjs +0 -27
  24. package/build/import/type/clone/type.mjs +0 -27
  25. package/build/import/type/clone/value.mjs +0 -27
  26. package/build/import/type/composite/composite.mjs +0 -27
  27. package/build/import/type/composite/index.mjs +0 -27
  28. package/build/import/type/const/const.mjs +0 -27
  29. package/build/import/type/const/index.mjs +0 -27
  30. package/build/import/type/constructor/constructor.mjs +0 -27
  31. package/build/import/type/constructor/index.mjs +0 -27
  32. package/build/import/type/constructor-parameters/constructor-parameters.mjs +0 -27
  33. package/build/import/type/constructor-parameters/index.mjs +0 -27
  34. package/build/import/type/date/date.mjs +0 -27
  35. package/build/import/type/date/index.mjs +0 -27
  36. package/build/import/type/deref/deref.mjs +0 -27
  37. package/build/import/type/deref/index.mjs +0 -27
  38. package/build/import/type/discard/discard.mjs +0 -27
  39. package/build/import/type/discard/index.mjs +0 -27
  40. package/build/import/type/enum/enum.mjs +0 -27
  41. package/build/import/type/enum/index.mjs +0 -27
  42. package/build/import/type/exclude/exclude-from-mapped-result.mjs +0 -27
  43. package/build/import/type/exclude/exclude.mjs +0 -27
  44. package/build/import/type/exclude/index.mjs +0 -27
  45. package/build/import/type/extends/extends-check.mjs +0 -27
  46. package/build/import/type/extends/extends-from-mapped-key.mjs +0 -27
  47. package/build/import/type/extends/extends-from-mapped-result.mjs +0 -27
  48. package/build/import/type/extends/extends-undefined.mjs +0 -27
  49. package/build/import/type/extends/extends.mjs +0 -27
  50. package/build/import/type/extends/index.mjs +0 -27
  51. package/build/import/type/extract/extract-from-mapped-result.mjs +0 -27
  52. package/build/import/type/extract/extract.mjs +0 -27
  53. package/build/import/type/extract/index.mjs +0 -27
  54. package/build/import/type/function/function.mjs +0 -27
  55. package/build/import/type/function/index.mjs +0 -27
  56. package/build/import/type/guard/index.mjs +0 -27
  57. package/build/import/type/guard/type.mjs +0 -27
  58. package/build/import/type/guard/value.mjs +0 -27
  59. package/build/import/type/helpers/helpers.mjs +0 -27
  60. package/build/import/type/helpers/index.mjs +0 -27
  61. package/build/import/type/index.mjs +0 -27
  62. package/build/import/type/indexed/index.d.mts +0 -1
  63. package/build/import/type/indexed/index.mjs +0 -28
  64. package/build/import/type/indexed/indexed-from-mapped-key.d.mts +2 -2
  65. package/build/import/type/indexed/indexed-from-mapped-key.mjs +2 -29
  66. package/build/import/type/indexed/indexed-property-keys.mjs +0 -27
  67. package/build/import/type/indexed/indexed.d.mts +38 -5
  68. package/build/import/type/indexed/indexed.mjs +78 -32
  69. package/build/import/type/instance-type/index.mjs +0 -27
  70. package/build/import/type/instance-type/instance-type.mjs +0 -27
  71. package/build/import/type/integer/index.mjs +0 -27
  72. package/build/import/type/integer/integer.mjs +0 -27
  73. package/build/import/type/intersect/index.mjs +0 -27
  74. package/build/import/type/intersect/intersect-create.mjs +0 -27
  75. package/build/import/type/intersect/intersect-evaluated.mjs +0 -27
  76. package/build/import/type/intersect/intersect-type.mjs +0 -27
  77. package/build/import/type/intersect/intersect.mjs +0 -27
  78. package/build/import/type/intrinsic/capitalize.mjs +0 -27
  79. package/build/import/type/intrinsic/index.mjs +0 -27
  80. package/build/import/type/intrinsic/intrinsic-from-mapped-key.mjs +0 -27
  81. package/build/import/type/intrinsic/intrinsic.mjs +0 -27
  82. package/build/import/type/intrinsic/lowercase.mjs +0 -27
  83. package/build/import/type/intrinsic/uncapitalize.mjs +0 -27
  84. package/build/import/type/intrinsic/uppercase.mjs +0 -27
  85. package/build/import/type/iterator/index.mjs +0 -27
  86. package/build/import/type/iterator/iterator.mjs +0 -27
  87. package/build/import/type/keyof/index.mjs +0 -27
  88. package/build/import/type/keyof/keyof-from-mapped-result.mjs +0 -27
  89. package/build/import/type/keyof/keyof-property-keys.mjs +0 -27
  90. package/build/import/type/keyof/keyof.mjs +0 -27
  91. package/build/import/type/literal/index.mjs +0 -27
  92. package/build/import/type/literal/literal.mjs +0 -27
  93. package/build/import/type/mapped/index.mjs +0 -27
  94. package/build/import/type/mapped/mapped-key.mjs +0 -27
  95. package/build/import/type/mapped/mapped-result.mjs +0 -27
  96. package/build/import/type/mapped/mapped.mjs +0 -27
  97. package/build/import/type/modifiers/index.mjs +0 -27
  98. package/build/import/type/modifiers/modifiers.mjs +0 -27
  99. package/build/import/type/never/index.mjs +0 -27
  100. package/build/import/type/never/never.mjs +0 -27
  101. package/build/import/type/not/index.mjs +0 -27
  102. package/build/import/type/not/not.mjs +0 -27
  103. package/build/import/type/null/index.mjs +0 -27
  104. package/build/import/type/null/null.mjs +0 -27
  105. package/build/import/type/number/index.mjs +0 -27
  106. package/build/import/type/number/number.mjs +0 -27
  107. package/build/import/type/object/index.mjs +0 -27
  108. package/build/import/type/object/object.mjs +0 -27
  109. package/build/import/type/omit/index.mjs +0 -27
  110. package/build/import/type/omit/omit-from-mapped-key.mjs +0 -27
  111. package/build/import/type/omit/omit.mjs +0 -27
  112. package/build/import/type/operators/index.mjs +0 -27
  113. package/build/import/type/operators/operators.mjs +0 -27
  114. package/build/import/type/optional/index.mjs +0 -27
  115. package/build/import/type/optional/optional.mjs +0 -27
  116. package/build/import/type/parameters/index.mjs +0 -27
  117. package/build/import/type/parameters/parameters.mjs +0 -27
  118. package/build/import/type/partial/index.mjs +0 -27
  119. package/build/import/type/partial/partial-from-mapped-result.mjs +0 -27
  120. package/build/import/type/partial/partial.mjs +0 -27
  121. package/build/import/type/patterns/index.mjs +0 -27
  122. package/build/import/type/patterns/patterns.mjs +0 -27
  123. package/build/import/type/pick/index.mjs +0 -27
  124. package/build/import/type/pick/pick-from-mapped-key.mjs +0 -27
  125. package/build/import/type/pick/pick.mjs +0 -27
  126. package/build/import/type/promise/index.mjs +0 -27
  127. package/build/import/type/promise/promise.mjs +0 -27
  128. package/build/import/type/readonly/index.mjs +0 -27
  129. package/build/import/type/readonly/readonly.mjs +0 -27
  130. package/build/import/type/readonly-optional/index.mjs +0 -27
  131. package/build/import/type/readonly-optional/readonly-optional.mjs +0 -27
  132. package/build/import/type/record/index.mjs +0 -27
  133. package/build/import/type/record/record.d.mts +10 -9
  134. package/build/import/type/record/record.mjs +36 -59
  135. package/build/import/type/recursive/index.mjs +0 -27
  136. package/build/import/type/recursive/recursive.mjs +0 -27
  137. package/build/import/type/ref/index.mjs +0 -27
  138. package/build/import/type/ref/ref.mjs +0 -27
  139. package/build/import/type/regexp/index.mjs +0 -27
  140. package/build/import/type/regexp/regexp.mjs +0 -27
  141. package/build/import/type/registry/format.mjs +0 -27
  142. package/build/import/type/registry/index.mjs +0 -27
  143. package/build/import/type/registry/type.mjs +0 -27
  144. package/build/import/type/required/index.mjs +0 -27
  145. package/build/import/type/required/required-from-mapped-result.mjs +0 -27
  146. package/build/import/type/required/required.mjs +0 -27
  147. package/build/import/type/rest/index.mjs +0 -27
  148. package/build/import/type/rest/rest.mjs +0 -27
  149. package/build/import/type/return-type/index.mjs +0 -27
  150. package/build/import/type/return-type/return-type.mjs +0 -27
  151. package/build/import/type/schema/anyschema.mjs +0 -27
  152. package/build/import/type/schema/index.mjs +0 -27
  153. package/build/import/type/schema/schema.mjs +0 -27
  154. package/build/import/type/static/index.mjs +0 -27
  155. package/build/import/type/static/static.mjs +0 -27
  156. package/build/import/type/strict/index.mjs +0 -27
  157. package/build/import/type/strict/strict.mjs +0 -27
  158. package/build/import/type/string/index.mjs +0 -27
  159. package/build/import/type/string/string.mjs +0 -27
  160. package/build/import/type/symbol/index.mjs +0 -27
  161. package/build/import/type/symbol/symbol.mjs +0 -27
  162. package/build/import/type/symbols/index.mjs +0 -27
  163. package/build/import/type/symbols/symbols.mjs +0 -27
  164. package/build/import/type/template-literal/finite.mjs +0 -27
  165. package/build/import/type/template-literal/generate.mjs +0 -27
  166. package/build/import/type/template-literal/index.mjs +0 -27
  167. package/build/import/type/template-literal/parser.mjs +0 -27
  168. package/build/import/type/template-literal/pattern.mjs +0 -27
  169. package/build/import/type/template-literal/syntax.mjs +0 -27
  170. package/build/import/type/template-literal/template-literal.mjs +0 -27
  171. package/build/import/type/template-literal/union.mjs +0 -27
  172. package/build/import/type/transform/index.mjs +0 -27
  173. package/build/import/type/transform/transform.mjs +0 -27
  174. package/build/import/type/tuple/index.mjs +0 -27
  175. package/build/import/type/tuple/tuple.mjs +0 -27
  176. package/build/import/type/type/index.mjs +0 -27
  177. package/build/import/type/type/javascript.mjs +0 -27
  178. package/build/import/type/type/json.d.mts +2 -2
  179. package/build/import/type/type/json.mjs +0 -27
  180. package/build/import/type/type/type.mjs +0 -27
  181. package/build/import/type/uint8array/index.mjs +0 -27
  182. package/build/import/type/uint8array/uint8array.mjs +0 -27
  183. package/build/import/type/undefined/index.mjs +0 -27
  184. package/build/import/type/undefined/undefined.mjs +0 -27
  185. package/build/import/type/union/index.mjs +0 -27
  186. package/build/import/type/union/union-create.mjs +0 -27
  187. package/build/import/type/union/union-evaluated.mjs +0 -27
  188. package/build/import/type/union/union-type.mjs +0 -27
  189. package/build/import/type/union/union.mjs +0 -27
  190. package/build/import/type/unknown/index.mjs +0 -27
  191. package/build/import/type/unknown/unknown.mjs +0 -27
  192. package/build/import/type/unsafe/index.mjs +0 -27
  193. package/build/import/type/unsafe/unsafe.mjs +0 -27
  194. package/build/import/type/void/index.mjs +0 -27
  195. package/build/import/type/void/void.mjs +0 -27
  196. package/build/import/value/cast/cast.mjs +0 -27
  197. package/build/import/value/cast/index.mjs +0 -27
  198. package/build/import/value/check/check.mjs +0 -27
  199. package/build/import/value/check/index.mjs +0 -27
  200. package/build/import/value/clean/clean.mjs +0 -27
  201. package/build/import/value/clean/index.mjs +0 -27
  202. package/build/import/value/clone/clone.mjs +0 -27
  203. package/build/import/value/clone/index.mjs +0 -27
  204. package/build/import/value/convert/convert.mjs +0 -27
  205. package/build/import/value/convert/index.mjs +0 -27
  206. package/build/import/value/create/create.mjs +0 -27
  207. package/build/import/value/create/index.mjs +0 -27
  208. package/build/import/value/default/default.mjs +0 -27
  209. package/build/import/value/default/index.mjs +0 -27
  210. package/build/import/value/delta/delta.mjs +0 -27
  211. package/build/import/value/delta/index.mjs +0 -27
  212. package/build/import/value/deref/deref.mjs +0 -27
  213. package/build/import/value/deref/index.mjs +0 -27
  214. package/build/import/value/equal/equal.mjs +0 -27
  215. package/build/import/value/equal/index.mjs +0 -27
  216. package/build/import/value/guard/guard.mjs +0 -27
  217. package/build/import/value/guard/index.mjs +0 -27
  218. package/build/import/value/hash/hash.mjs +0 -27
  219. package/build/import/value/hash/index.mjs +0 -27
  220. package/build/import/value/index.mjs +0 -27
  221. package/build/import/value/mutate/index.mjs +0 -27
  222. package/build/import/value/mutate/mutate.mjs +0 -27
  223. package/build/import/value/pointer/index.mjs +0 -27
  224. package/build/import/value/pointer/pointer.mjs +0 -27
  225. package/build/import/value/transform/decode.mjs +0 -27
  226. package/build/import/value/transform/encode.mjs +0 -27
  227. package/build/import/value/transform/has.mjs +0 -27
  228. package/build/import/value/transform/index.mjs +0 -27
  229. package/build/import/value/value/index.mjs +0 -27
  230. package/build/import/value/value/value.mjs +0 -27
  231. package/build/require/compiler/compiler.js +0 -26
  232. package/build/require/compiler/index.js +0 -26
  233. package/build/require/errors/errors.js +0 -26
  234. package/build/require/errors/function.js +0 -26
  235. package/build/require/errors/index.js +0 -26
  236. package/build/require/index.js +0 -26
  237. package/build/require/system/index.js +0 -26
  238. package/build/require/system/policy.js +0 -26
  239. package/build/require/system/system.js +0 -26
  240. package/build/require/type/any/any.js +0 -26
  241. package/build/require/type/any/index.js +0 -26
  242. package/build/require/type/array/array.js +0 -26
  243. package/build/require/type/array/index.js +0 -26
  244. package/build/require/type/async-iterator/async-iterator.js +0 -26
  245. package/build/require/type/async-iterator/index.js +0 -26
  246. package/build/require/type/awaited/awaited.d.ts +6 -6
  247. package/build/require/type/awaited/awaited.js +14 -41
  248. package/build/require/type/awaited/index.js +0 -26
  249. package/build/require/type/bigint/bigint.js +0 -26
  250. package/build/require/type/bigint/index.js +0 -26
  251. package/build/require/type/boolean/boolean.js +0 -26
  252. package/build/require/type/boolean/index.js +0 -26
  253. package/build/require/type/clone/index.js +0 -26
  254. package/build/require/type/clone/type.js +0 -26
  255. package/build/require/type/clone/value.js +0 -26
  256. package/build/require/type/composite/composite.js +0 -26
  257. package/build/require/type/composite/index.js +0 -26
  258. package/build/require/type/const/const.js +0 -26
  259. package/build/require/type/const/index.js +0 -26
  260. package/build/require/type/constructor/constructor.js +0 -26
  261. package/build/require/type/constructor/index.js +0 -26
  262. package/build/require/type/constructor-parameters/constructor-parameters.js +0 -26
  263. package/build/require/type/constructor-parameters/index.js +0 -26
  264. package/build/require/type/date/date.js +0 -26
  265. package/build/require/type/date/index.js +0 -26
  266. package/build/require/type/deref/deref.js +0 -26
  267. package/build/require/type/deref/index.js +0 -26
  268. package/build/require/type/discard/discard.js +0 -26
  269. package/build/require/type/discard/index.js +0 -26
  270. package/build/require/type/enum/enum.js +0 -26
  271. package/build/require/type/enum/index.js +0 -26
  272. package/build/require/type/exclude/exclude-from-mapped-result.js +0 -26
  273. package/build/require/type/exclude/exclude.js +0 -26
  274. package/build/require/type/exclude/index.js +0 -26
  275. package/build/require/type/extends/extends-check.js +0 -26
  276. package/build/require/type/extends/extends-from-mapped-key.js +0 -26
  277. package/build/require/type/extends/extends-from-mapped-result.js +0 -26
  278. package/build/require/type/extends/extends-undefined.js +0 -26
  279. package/build/require/type/extends/extends.js +0 -26
  280. package/build/require/type/extends/index.js +0 -26
  281. package/build/require/type/extract/extract-from-mapped-result.js +0 -26
  282. package/build/require/type/extract/extract.js +0 -26
  283. package/build/require/type/extract/index.js +0 -26
  284. package/build/require/type/function/function.js +0 -26
  285. package/build/require/type/function/index.js +0 -26
  286. package/build/require/type/guard/index.js +0 -26
  287. package/build/require/type/guard/type.js +0 -26
  288. package/build/require/type/guard/value.js +0 -26
  289. package/build/require/type/helpers/helpers.js +0 -26
  290. package/build/require/type/helpers/index.js +0 -26
  291. package/build/require/type/index.js +0 -26
  292. package/build/require/type/indexed/index.d.ts +0 -1
  293. package/build/require/type/indexed/index.js +0 -27
  294. package/build/require/type/indexed/indexed-from-mapped-key.d.ts +2 -2
  295. package/build/require/type/indexed/indexed-from-mapped-key.js +2 -28
  296. package/build/require/type/indexed/indexed-property-keys.js +0 -26
  297. package/build/require/type/indexed/indexed.d.ts +38 -5
  298. package/build/require/type/indexed/indexed.js +77 -30
  299. package/build/require/type/instance-type/index.js +0 -26
  300. package/build/require/type/instance-type/instance-type.js +0 -26
  301. package/build/require/type/integer/index.js +0 -26
  302. package/build/require/type/integer/integer.js +0 -26
  303. package/build/require/type/intersect/index.js +0 -26
  304. package/build/require/type/intersect/intersect-create.js +0 -26
  305. package/build/require/type/intersect/intersect-evaluated.js +0 -26
  306. package/build/require/type/intersect/intersect-type.js +0 -26
  307. package/build/require/type/intersect/intersect.js +0 -26
  308. package/build/require/type/intrinsic/capitalize.js +0 -26
  309. package/build/require/type/intrinsic/index.js +0 -26
  310. package/build/require/type/intrinsic/intrinsic-from-mapped-key.js +0 -26
  311. package/build/require/type/intrinsic/intrinsic.js +0 -26
  312. package/build/require/type/intrinsic/lowercase.js +0 -26
  313. package/build/require/type/intrinsic/uncapitalize.js +0 -26
  314. package/build/require/type/intrinsic/uppercase.js +0 -26
  315. package/build/require/type/iterator/index.js +0 -26
  316. package/build/require/type/iterator/iterator.js +0 -26
  317. package/build/require/type/keyof/index.js +0 -26
  318. package/build/require/type/keyof/keyof-from-mapped-result.js +0 -26
  319. package/build/require/type/keyof/keyof-property-keys.js +0 -26
  320. package/build/require/type/keyof/keyof.js +0 -26
  321. package/build/require/type/literal/index.js +0 -26
  322. package/build/require/type/literal/literal.js +0 -26
  323. package/build/require/type/mapped/index.js +0 -26
  324. package/build/require/type/mapped/mapped-key.js +0 -26
  325. package/build/require/type/mapped/mapped-result.js +0 -26
  326. package/build/require/type/mapped/mapped.js +0 -26
  327. package/build/require/type/modifiers/index.js +0 -26
  328. package/build/require/type/modifiers/modifiers.js +0 -26
  329. package/build/require/type/never/index.js +0 -26
  330. package/build/require/type/never/never.js +0 -26
  331. package/build/require/type/not/index.js +0 -26
  332. package/build/require/type/not/not.js +0 -26
  333. package/build/require/type/null/index.js +0 -26
  334. package/build/require/type/null/null.js +0 -26
  335. package/build/require/type/number/index.js +0 -26
  336. package/build/require/type/number/number.js +0 -26
  337. package/build/require/type/object/index.js +0 -26
  338. package/build/require/type/object/object.js +0 -26
  339. package/build/require/type/omit/index.js +0 -26
  340. package/build/require/type/omit/omit-from-mapped-key.js +0 -26
  341. package/build/require/type/omit/omit.js +0 -26
  342. package/build/require/type/operators/index.js +0 -26
  343. package/build/require/type/operators/operators.js +0 -26
  344. package/build/require/type/optional/index.js +0 -26
  345. package/build/require/type/optional/optional.js +0 -26
  346. package/build/require/type/parameters/index.js +0 -26
  347. package/build/require/type/parameters/parameters.js +0 -26
  348. package/build/require/type/partial/index.js +0 -26
  349. package/build/require/type/partial/partial-from-mapped-result.js +0 -26
  350. package/build/require/type/partial/partial.js +0 -26
  351. package/build/require/type/patterns/index.js +0 -26
  352. package/build/require/type/patterns/patterns.js +0 -26
  353. package/build/require/type/pick/index.js +0 -26
  354. package/build/require/type/pick/pick-from-mapped-key.js +0 -26
  355. package/build/require/type/pick/pick.js +0 -26
  356. package/build/require/type/promise/index.js +0 -26
  357. package/build/require/type/promise/promise.js +0 -26
  358. package/build/require/type/readonly/index.js +0 -26
  359. package/build/require/type/readonly/readonly.js +0 -26
  360. package/build/require/type/readonly-optional/index.js +0 -26
  361. package/build/require/type/readonly-optional/readonly-optional.js +0 -26
  362. package/build/require/type/record/index.js +0 -26
  363. package/build/require/type/record/record.d.ts +10 -9
  364. package/build/require/type/record/record.js +36 -58
  365. package/build/require/type/recursive/index.js +0 -26
  366. package/build/require/type/recursive/recursive.js +0 -26
  367. package/build/require/type/ref/index.js +0 -26
  368. package/build/require/type/ref/ref.js +0 -26
  369. package/build/require/type/regexp/index.js +0 -26
  370. package/build/require/type/regexp/regexp.js +0 -26
  371. package/build/require/type/registry/format.js +0 -26
  372. package/build/require/type/registry/index.js +0 -26
  373. package/build/require/type/registry/type.js +0 -26
  374. package/build/require/type/required/index.js +0 -26
  375. package/build/require/type/required/required-from-mapped-result.js +0 -26
  376. package/build/require/type/required/required.js +0 -26
  377. package/build/require/type/rest/index.js +0 -26
  378. package/build/require/type/rest/rest.js +0 -26
  379. package/build/require/type/return-type/index.js +0 -26
  380. package/build/require/type/return-type/return-type.js +0 -26
  381. package/build/require/type/schema/anyschema.js +0 -26
  382. package/build/require/type/schema/index.js +0 -26
  383. package/build/require/type/schema/schema.js +0 -26
  384. package/build/require/type/static/index.js +0 -26
  385. package/build/require/type/static/static.js +0 -26
  386. package/build/require/type/strict/index.js +0 -26
  387. package/build/require/type/strict/strict.js +0 -26
  388. package/build/require/type/string/index.js +0 -26
  389. package/build/require/type/string/string.js +0 -26
  390. package/build/require/type/symbol/index.js +0 -26
  391. package/build/require/type/symbol/symbol.js +0 -26
  392. package/build/require/type/symbols/index.js +0 -26
  393. package/build/require/type/symbols/symbols.js +0 -26
  394. package/build/require/type/template-literal/finite.js +0 -26
  395. package/build/require/type/template-literal/generate.js +0 -26
  396. package/build/require/type/template-literal/index.js +0 -26
  397. package/build/require/type/template-literal/parser.js +0 -26
  398. package/build/require/type/template-literal/pattern.js +0 -26
  399. package/build/require/type/template-literal/syntax.js +0 -26
  400. package/build/require/type/template-literal/template-literal.js +0 -26
  401. package/build/require/type/template-literal/union.js +0 -26
  402. package/build/require/type/transform/index.js +0 -26
  403. package/build/require/type/transform/transform.js +0 -26
  404. package/build/require/type/tuple/index.js +0 -26
  405. package/build/require/type/tuple/tuple.js +0 -26
  406. package/build/require/type/type/index.js +0 -26
  407. package/build/require/type/type/javascript.js +0 -26
  408. package/build/require/type/type/json.d.ts +2 -2
  409. package/build/require/type/type/json.js +0 -26
  410. package/build/require/type/type/type.js +0 -26
  411. package/build/require/type/uint8array/index.js +0 -26
  412. package/build/require/type/uint8array/uint8array.js +0 -26
  413. package/build/require/type/undefined/index.js +0 -26
  414. package/build/require/type/undefined/undefined.js +0 -26
  415. package/build/require/type/union/index.js +0 -26
  416. package/build/require/type/union/union-create.js +0 -26
  417. package/build/require/type/union/union-evaluated.js +0 -26
  418. package/build/require/type/union/union-type.js +0 -26
  419. package/build/require/type/union/union.js +0 -26
  420. package/build/require/type/unknown/index.js +0 -26
  421. package/build/require/type/unknown/unknown.js +0 -26
  422. package/build/require/type/unsafe/index.js +0 -26
  423. package/build/require/type/unsafe/unsafe.js +0 -26
  424. package/build/require/type/void/index.js +0 -26
  425. package/build/require/type/void/void.js +0 -26
  426. package/build/require/value/cast/cast.js +0 -26
  427. package/build/require/value/cast/index.js +0 -26
  428. package/build/require/value/check/check.js +0 -26
  429. package/build/require/value/check/index.js +0 -26
  430. package/build/require/value/clean/clean.js +0 -26
  431. package/build/require/value/clean/index.js +0 -26
  432. package/build/require/value/clone/clone.js +0 -26
  433. package/build/require/value/clone/index.js +0 -26
  434. package/build/require/value/convert/convert.js +0 -26
  435. package/build/require/value/convert/index.js +0 -26
  436. package/build/require/value/create/create.js +0 -26
  437. package/build/require/value/create/index.js +0 -26
  438. package/build/require/value/default/default.js +0 -26
  439. package/build/require/value/default/index.js +0 -26
  440. package/build/require/value/delta/delta.js +0 -26
  441. package/build/require/value/delta/index.js +0 -26
  442. package/build/require/value/deref/deref.js +0 -26
  443. package/build/require/value/deref/index.js +0 -26
  444. package/build/require/value/equal/equal.js +0 -26
  445. package/build/require/value/equal/index.js +0 -26
  446. package/build/require/value/guard/guard.js +0 -26
  447. package/build/require/value/guard/index.js +0 -26
  448. package/build/require/value/hash/hash.js +0 -26
  449. package/build/require/value/hash/index.js +0 -26
  450. package/build/require/value/index.js +0 -26
  451. package/build/require/value/mutate/index.js +0 -26
  452. package/build/require/value/mutate/mutate.js +0 -26
  453. package/build/require/value/pointer/index.js +0 -26
  454. package/build/require/value/pointer/pointer.js +0 -26
  455. package/build/require/value/transform/decode.js +0 -26
  456. package/build/require/value/transform/encode.js +0 -26
  457. package/build/require/value/transform/has.js +0 -26
  458. package/build/require/value/transform/index.js +0 -26
  459. package/build/require/value/value/index.js +0 -26
  460. package/build/require/value/value/value.js +0 -26
  461. package/license +3 -1
  462. package/package.json +1 -1
  463. package/readme.md +2 -2
  464. package/build/import/type/indexed/indexed-result.d.mts +0 -33
  465. package/build/import/type/indexed/indexed-result.mjs +0 -107
  466. package/build/require/type/indexed/indexed-result.d.ts +0 -33
  467. package/build/require/type/indexed/indexed-result.js +0 -111
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.Extract = exports.ExtractResolve = void 0;
31
5
  const index_1 = require("../template-literal/index");
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
30
4
  if (k2 === undefined) k2 = k;
31
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.Function = void 0;
31
5
  const type_1 = require("../clone/type");
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
30
4
  if (k2 === undefined) k2 = k;
31
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.ValueGuard = exports.TypeGuard = void 0;
31
5
  exports.TypeGuard = require("./type");
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.TSchema = exports.TKind = exports.TVoid = exports.TUnsafe = exports.TUnknown = exports.TUint8Array = exports.TUnion = exports.TUnionLiteral = exports.TUndefined = exports.TTuple = exports.TTransform = exports.TThis = exports.TTemplateLiteral = exports.TSymbol = exports.TString = exports.TRef = exports.TRecursive = exports.TRecord = exports.TPromise = exports.TObject = exports.TNumber = exports.TNull = exports.TNot = exports.TNever = exports.TMappedResult = exports.TMappedKey = exports.TLiteralValue = exports.TLiteral = exports.TLiteralBoolean = exports.TLiteralNumber = exports.TLiteralString = exports.TKindOf = exports.TIterator = exports.TIntersect = exports.TProperties = exports.TInteger = exports.TFunction = exports.TDate = exports.TConstructor = exports.TBoolean = exports.TBigInt = exports.TAsyncIterator = exports.TArray = exports.TAny = exports.TOptional = exports.TReadonly = exports.TypeGuardUnknownTypeError = void 0;
31
5
  const ValueGuard = require("./value");
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.IsUndefined = exports.IsUint8Array = exports.IsSymbol = exports.IsString = exports.IsObject = exports.IsNumber = exports.IsNull = exports.IsIterator = exports.IsFunction = exports.IsDate = exports.IsBoolean = exports.IsBigInt = exports.IsArray = exports.IsAsyncIterator = void 0;
31
5
  /** Returns true if this value is an async iterator */
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.Increment = void 0;
31
5
  /** Increments the given string value + 1 */
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
30
4
  if (k2 === undefined) k2 = k;
31
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
30
4
  if (k2 === undefined) k2 = k;
31
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,4 +1,3 @@
1
1
  export * from './indexed-from-mapped-key';
2
2
  export * from './indexed-property-keys';
3
- export * from './indexed-result';
4
3
  export * from './indexed';
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
30
4
  if (k2 === undefined) k2 = k;
31
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -43,5 +17,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
43
17
  Object.defineProperty(exports, "__esModule", { value: true });
44
18
  __exportStar(require("./indexed-from-mapped-key"), exports);
45
19
  __exportStar(require("./indexed-property-keys"), exports);
46
- __exportStar(require("./indexed-result"), exports);
47
20
  __exportStar(require("./indexed"), exports);
@@ -1,10 +1,10 @@
1
1
  import type { TSchema, SchemaOptions } from '../schema/index';
2
2
  import { type TProperties } from '../object/index';
3
- import { type TIndexResult } from './indexed-result';
3
+ import { type TIndex } from './indexed';
4
4
  import { type TMappedResult, type TMappedKey } from '../mapped/index';
5
5
  import { Evaluate } from '../helpers/index';
6
6
  type MappedIndexPropertyKey<T extends TSchema, K extends PropertyKey> = {
7
- [_ in K]: TIndexResult<T, [K]>;
7
+ [_ in K]: TIndex<T, [K]>;
8
8
  };
9
9
  declare function MappedIndexPropertyKey<T extends TSchema, K extends PropertyKey>(T: T, K: K, options: SchemaOptions): MappedIndexPropertyKey<T, K>;
10
10
  type MappedIndexPropertyKeys<T extends TSchema, K extends PropertyKey[]> = (K extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? MappedIndexPropertyKey<T, L> & MappedIndexPropertyKeys<T, R> : {});
@@ -1,41 +1,15 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.IndexFromMappedKey = void 0;
31
- const indexed_result_1 = require("./indexed-result");
5
+ const indexed_1 = require("./indexed");
32
6
  const index_1 = require("../mapped/index");
33
7
  // prettier-ignore
34
8
  function MappedIndexPropertyKey(T, K, options) {
35
9
  // todo: propogate options into index result. This type looks like it
36
10
  // could use a clean up, possibly inlining it into indexed.ts to
37
11
  // bring it inline with other mapping types.
38
- return { [K]: (0, indexed_result_1.IndexResult)(T, [K], options) };
12
+ return { [K]: (0, indexed_1.Index)(T, [K], options) };
39
13
  }
40
14
  // prettier-ignore
41
15
  function MappedIndexPropertyKeys(T, K, options) {
@@ -1,31 +1,5 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.IndexPropertyKeys = void 0;
31
5
  const index_1 = require("../template-literal/index");
@@ -1,12 +1,45 @@
1
- import type { TSchema, SchemaOptions } from '../schema/index';
2
- import { type TIndexResult } from './indexed-result';
1
+ import { type TSchema, SchemaOptions } from '../schema/index';
2
+ import { type TObject, type TProperties } from '../object/index';
3
+ import { type Assert } from '../helpers/index';
4
+ import { type TNever } from '../never/index';
5
+ import { type TRecursive } from '../recursive/index';
6
+ import { type TIntersect } from '../intersect/index';
7
+ import { type TMappedKey } from '../mapped/index';
8
+ import { type TUnion } from '../union/index';
9
+ import { type TTuple } from '../tuple/index';
10
+ import { type TArray } from '../array/index';
11
+ import { IntersectEvaluated } from '../intersect/index';
12
+ import { UnionEvaluated } from '../union/index';
3
13
  import { type TIndexPropertyKeys } from './indexed-property-keys';
4
14
  import { type TIndexFromMappedKey } from './indexed-from-mapped-key';
5
- import { TMappedKey } from '../mapped/index';
6
- export type TIndex<T extends TSchema, K extends PropertyKey[]> = TIndexResult<T, K>;
7
- /** `[Json]` Returns an indexed mapped key result */
15
+ type FromRest<T extends TSchema[], K extends PropertyKey> = (T extends [infer L extends TSchema, ...infer R extends TSchema[]] ? [FromKey<L, K>, ...FromRest<R, K>] : []);
16
+ declare function FromRest<T extends TSchema[], K extends PropertyKey>(T: [...T], K: K): FromRest<T, K>;
17
+ type FromIntersectRest<T extends TSchema[]> = (T extends [infer L extends TSchema, ...infer R extends TSchema[]] ? L extends TNever ? [...FromIntersectRest<R>] : [L, ...FromIntersectRest<R>] : []);
18
+ declare function FromIntersectRest<T extends TSchema[]>(T: [...T]): FromIntersectRest<T>;
19
+ type FromIntersect<T extends TSchema[], K extends PropertyKey> = (IntersectEvaluated<FromIntersectRest<FromRest<T, K>>>);
20
+ declare function FromIntersect<T extends TSchema[], K extends PropertyKey>(T: [...T], K: K): FromIntersect<T, K>;
21
+ type FromUnionRest<T extends TSchema[], S = T> = (T extends [infer L extends TSchema, ...infer R extends TSchema[]] ? L extends TNever ? [] : FromUnionRest<R, S> : S);
22
+ declare function FromUnionRest<T extends TSchema[]>(T: [...T], S?: [...T]): FromUnionRest<T>;
23
+ type FromUnion<T extends TSchema[], K extends PropertyKey> = (UnionEvaluated<FromUnionRest<FromRest<T, K>>>);
24
+ declare function FromUnion<T extends TSchema[], K extends PropertyKey>(T: [...T], K: K): FromUnion<T, K>;
25
+ type FromTuple<T extends TSchema[], K extends PropertyKey> = (K extends keyof T ? T[K] : K extends '[number]' ? UnionEvaluated<T> : TNever);
26
+ declare function FromTuple<T extends TSchema[], K extends PropertyKey>(T: [...T], K: K): FromTuple<T, K>;
27
+ type FromArray<T extends TSchema, K extends PropertyKey> = (K extends '[number]' ? T : TNever);
28
+ declare function FromArray<T extends TSchema, K extends PropertyKey>(T: T, K: K): FromArray<T, K>;
29
+ type AssertPropertyKey<T> = Assert<T, string | number>;
30
+ type FromProperty<T extends TProperties, K extends PropertyKey> = (K extends keyof T ? T[K] : `${AssertPropertyKey<K>}` extends `${AssertPropertyKey<keyof T>}` ? T[AssertPropertyKey<K>] : TNever);
31
+ declare function FromProperty<T extends TProperties, K extends PropertyKey>(T: T, K: K): FromProperty<T, K>;
32
+ type FromKey<T extends TSchema, K extends PropertyKey> = (T extends TRecursive<infer S> ? FromKey<S, K> : T extends TIntersect<infer S> ? FromIntersect<S, K> : T extends TUnion<infer S> ? FromUnion<S, K> : T extends TTuple<infer S> ? FromTuple<S, K> : T extends TArray<infer S> ? FromArray<S, K> : T extends TObject<infer S> ? FromProperty<S, K> : TNever);
33
+ declare function FromKey<T extends TSchema, K extends PropertyKey>(T: T, K: K): FromKey<T, K>;
34
+ type FromKeys<T extends TSchema, K extends PropertyKey[]> = (K extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? [FromKey<T, L>, ...FromKeys<T, R>] : []);
35
+ declare function FromKeys<T extends TSchema, K extends PropertyKey[]>(T: T, K: [...K]): FromKeys<T, K>;
36
+ type FromSchema<T extends TSchema, K extends PropertyKey[]> = (UnionEvaluated<FromKeys<T, K>>);
37
+ declare function FromSchema<T extends TSchema, K extends PropertyKey[]>(T: T, K: [...K]): FromSchema<T, K>;
38
+ export type TIndex<T extends TSchema, K extends PropertyKey[]> = (FromSchema<T, K>);
39
+ /** `[Json]` Returns an Indexed property type for the given keys */
8
40
  export declare function Index<T extends TSchema, K extends TMappedKey>(T: T, K: K, options?: SchemaOptions): TIndexFromMappedKey<T, K>;
9
41
  /** `[Json]` Returns an Indexed property type for the given keys */
10
42
  export declare function Index<T extends TSchema, K extends TSchema, I extends PropertyKey[] = TIndexPropertyKeys<K>>(T: T, K: K, options?: SchemaOptions): TIndex<T, I>;
11
43
  /** `[Json]` Returns an Indexed property type for the given keys */
12
44
  export declare function Index<T extends TSchema, K extends PropertyKey[]>(T: T, K: readonly [...K], options?: SchemaOptions): TIndex<T, K>;
45
+ export {};
@@ -1,47 +1,94 @@
1
1
  "use strict";
2
- /*--------------------------------------------------------------------------
3
2
 
4
- @sinclair/typebox/type
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
- ---------------------------------------------------------------------------*/
29
3
  Object.defineProperty(exports, "__esModule", { value: true });
30
4
  exports.Index = void 0;
31
- const indexed_result_1 = require("./indexed-result");
5
+ const index_1 = require("../never/index");
6
+ const index_2 = require("../intersect/index");
7
+ const index_3 = require("../union/index");
8
+ const type_1 = require("../clone/type");
32
9
  const indexed_property_keys_1 = require("./indexed-property-keys");
33
10
  const indexed_from_mapped_key_1 = require("./indexed-from-mapped-key");
34
- const type_1 = require("../clone/type");
35
11
  // ------------------------------------------------------------------
36
12
  // TypeGuard
37
13
  // ------------------------------------------------------------------
38
14
  // prettier-ignore
39
15
  const type_2 = require("../guard/type");
16
+ // prettier-ignore
17
+ function FromRest(T, K) {
18
+ const [L, ...R] = T;
19
+ return (T.length > 0
20
+ ? [FromKey(L, K), ...FromRest(R, K)]
21
+ : []);
22
+ }
23
+ // prettier-ignore
24
+ function FromIntersectRest(T) {
25
+ const [L, ...R] = T;
26
+ return (T.length > 0
27
+ ? (0, type_2.TNever)(L)
28
+ ? [...FromIntersectRest(R)]
29
+ : [L, ...FromIntersectRest(R)]
30
+ : []);
31
+ }
32
+ // prettier-ignore
33
+ function FromIntersect(T, K) {
34
+ return ((0, index_2.IntersectEvaluated)(FromIntersectRest(FromRest(T, K))));
35
+ }
36
+ // prettier-ignore
37
+ function FromUnionRest(T, S = T) {
38
+ const [L, ...R] = T;
39
+ return (T.length > 0
40
+ ? (0, type_2.TNever)(L)
41
+ ? []
42
+ : FromUnionRest(R, S)
43
+ : S);
44
+ }
45
+ // prettier-ignore
46
+ function FromUnion(T, K) {
47
+ return ((0, index_3.UnionEvaluated)(FromUnionRest(FromRest(T, K))));
48
+ }
49
+ // prettier-ignore
50
+ function FromTuple(T, K) {
51
+ return (K in T ? T[K] :
52
+ K === '[number]' ? (0, index_3.UnionEvaluated)(T) :
53
+ (0, index_1.Never)());
54
+ }
55
+ // prettier-ignore
56
+ function FromArray(T, K) {
57
+ return (K === '[number]'
58
+ ? T
59
+ : (0, index_1.Never)());
60
+ }
61
+ // prettier-ignore
62
+ function FromProperty(T, K) {
63
+ return (K in T
64
+ ? T[K]
65
+ : (0, index_1.Never)());
66
+ }
67
+ // prettier-ignore
68
+ function FromKey(T, K) {
69
+ return ((0, type_2.TIntersect)(T) ? FromIntersect(T.allOf, K) :
70
+ (0, type_2.TUnion)(T) ? FromUnion(T.anyOf, K) :
71
+ (0, type_2.TTuple)(T) ? FromTuple(T.items ?? [], K) :
72
+ (0, type_2.TArray)(T) ? FromArray(T.items, K) :
73
+ (0, type_2.TObject)(T) ? FromProperty(T.properties, K) :
74
+ (0, index_1.Never)());
75
+ }
76
+ // prettier-ignore
77
+ function FromKeys(T, K) {
78
+ const [L, ...R] = K;
79
+ return (K.length > 0
80
+ ? [FromKey(T, L), ...FromKeys(T, R)]
81
+ : []);
82
+ }
83
+ // prettier-ignore
84
+ function FromSchema(T, K) {
85
+ return ((0, index_3.UnionEvaluated)(FromKeys(T, K)));
86
+ }
40
87
  /** `[Json]` Returns an Indexed property type for the given keys */
41
88
  function Index(T, K, options = {}) {
42
89
  // prettier-ignore
43
90
  return ((0, type_2.TMappedKey)(K) ? (0, type_1.CloneType)((0, indexed_from_mapped_key_1.IndexFromMappedKey)(T, K, options)) :
44
- (0, type_2.TSchema)(K) ? (0, indexed_result_1.IndexResult)(T, (0, indexed_property_keys_1.IndexPropertyKeys)(K), options) :
45
- (0, indexed_result_1.IndexResult)(T, K, options));
91
+ (0, type_2.TSchema)(K) ? (0, type_1.CloneType)(FromSchema(T, (0, indexed_property_keys_1.IndexPropertyKeys)(K)), options) :
92
+ (0, type_1.CloneType)(FromSchema(T, K), options));
46
93
  }
47
94
  exports.Index = Index;