effect 4.0.0-beta.69 → 4.0.0-beta.70

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 (1269) hide show
  1. package/dist/Array.d.ts +454 -0
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +152 -0
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +87 -33
  6. package/dist/BigDecimal.d.ts.map +1 -1
  7. package/dist/BigDecimal.js +37 -11
  8. package/dist/BigDecimal.js.map +1 -1
  9. package/dist/BigInt.d.ts +71 -14
  10. package/dist/BigInt.d.ts.map +1 -1
  11. package/dist/BigInt.js +35 -10
  12. package/dist/BigInt.js.map +1 -1
  13. package/dist/Boolean.d.ts +4 -0
  14. package/dist/Boolean.d.ts.map +1 -1
  15. package/dist/Boolean.js +4 -0
  16. package/dist/Boolean.js.map +1 -1
  17. package/dist/Brand.d.ts +16 -11
  18. package/dist/Brand.d.ts.map +1 -1
  19. package/dist/Brand.js +16 -11
  20. package/dist/Brand.js.map +1 -1
  21. package/dist/Cache.d.ts +13 -1
  22. package/dist/Cache.d.ts.map +1 -1
  23. package/dist/Cache.js +8 -0
  24. package/dist/Cache.js.map +1 -1
  25. package/dist/Cause.d.ts +95 -3
  26. package/dist/Cause.d.ts.map +1 -1
  27. package/dist/Cause.js +56 -2
  28. package/dist/Cause.js.map +1 -1
  29. package/dist/Channel.d.ts +312 -0
  30. package/dist/Channel.d.ts.map +1 -1
  31. package/dist/Channel.js +126 -0
  32. package/dist/Channel.js.map +1 -1
  33. package/dist/ChannelSchema.d.ts +20 -0
  34. package/dist/ChannelSchema.d.ts.map +1 -1
  35. package/dist/ChannelSchema.js +12 -0
  36. package/dist/ChannelSchema.js.map +1 -1
  37. package/dist/Chunk.d.ts +59 -22
  38. package/dist/Chunk.d.ts.map +1 -1
  39. package/dist/Chunk.js +29 -10
  40. package/dist/Chunk.js.map +1 -1
  41. package/dist/Combiner.d.ts +75 -71
  42. package/dist/Combiner.d.ts.map +1 -1
  43. package/dist/Combiner.js +67 -62
  44. package/dist/Combiner.js.map +1 -1
  45. package/dist/Config.d.ts +167 -46
  46. package/dist/Config.d.ts.map +1 -1
  47. package/dist/Config.js +108 -28
  48. package/dist/Config.js.map +1 -1
  49. package/dist/ConfigProvider.d.ts +235 -158
  50. package/dist/ConfigProvider.d.ts.map +1 -1
  51. package/dist/ConfigProvider.js +144 -93
  52. package/dist/ConfigProvider.js.map +1 -1
  53. package/dist/Console.d.ts +21 -79
  54. package/dist/Console.d.ts.map +1 -1
  55. package/dist/Console.js +20 -75
  56. package/dist/Console.js.map +1 -1
  57. package/dist/Context.d.ts +4 -4
  58. package/dist/Context.js +2 -2
  59. package/dist/Cron.d.ts +42 -16
  60. package/dist/Cron.d.ts.map +1 -1
  61. package/dist/Cron.js +33 -13
  62. package/dist/Cron.js.map +1 -1
  63. package/dist/Crypto.d.ts +6 -0
  64. package/dist/Crypto.d.ts.map +1 -1
  65. package/dist/Crypto.js.map +1 -1
  66. package/dist/Data.d.ts +132 -70
  67. package/dist/Data.d.ts.map +1 -1
  68. package/dist/Data.js +44 -29
  69. package/dist/Data.js.map +1 -1
  70. package/dist/DateTime.d.ts +227 -14
  71. package/dist/DateTime.d.ts.map +1 -1
  72. package/dist/DateTime.js +115 -6
  73. package/dist/DateTime.js.map +1 -1
  74. package/dist/Deferred.d.ts +94 -27
  75. package/dist/Deferred.d.ts.map +1 -1
  76. package/dist/Deferred.js +33 -8
  77. package/dist/Deferred.js.map +1 -1
  78. package/dist/Differ.d.ts +2 -0
  79. package/dist/Differ.d.ts.map +1 -1
  80. package/dist/Duration.d.ts +64 -6
  81. package/dist/Duration.d.ts.map +1 -1
  82. package/dist/Duration.js +26 -2
  83. package/dist/Duration.js.map +1 -1
  84. package/dist/Effect.d.ts +907 -603
  85. package/dist/Effect.d.ts.map +1 -1
  86. package/dist/Effect.js +360 -233
  87. package/dist/Effect.js.map +1 -1
  88. package/dist/Effectable.d.ts +3 -1
  89. package/dist/Effectable.d.ts.map +1 -1
  90. package/dist/Effectable.js +3 -1
  91. package/dist/Effectable.js.map +1 -1
  92. package/dist/Encoding.d.ts +16 -0
  93. package/dist/Encoding.d.ts.map +1 -1
  94. package/dist/Encoding.js +16 -0
  95. package/dist/Encoding.js.map +1 -1
  96. package/dist/Equal.d.ts +52 -40
  97. package/dist/Equal.d.ts.map +1 -1
  98. package/dist/Equal.js +32 -26
  99. package/dist/Equal.js.map +1 -1
  100. package/dist/Equivalence.d.ts +190 -153
  101. package/dist/Equivalence.d.ts.map +1 -1
  102. package/dist/Equivalence.js +129 -104
  103. package/dist/Equivalence.js.map +1 -1
  104. package/dist/ErrorReporter.d.ts +35 -14
  105. package/dist/ErrorReporter.d.ts.map +1 -1
  106. package/dist/ErrorReporter.js +18 -6
  107. package/dist/ErrorReporter.js.map +1 -1
  108. package/dist/ExecutionPlan.d.ts +10 -3
  109. package/dist/ExecutionPlan.d.ts.map +1 -1
  110. package/dist/ExecutionPlan.js +4 -3
  111. package/dist/ExecutionPlan.js.map +1 -1
  112. package/dist/Exit.d.ts +212 -6
  113. package/dist/Exit.d.ts.map +1 -1
  114. package/dist/Exit.js +139 -2
  115. package/dist/Exit.js.map +1 -1
  116. package/dist/Fiber.d.ts +8 -0
  117. package/dist/Fiber.d.ts.map +1 -1
  118. package/dist/Fiber.js +4 -0
  119. package/dist/Fiber.js.map +1 -1
  120. package/dist/FiberHandle.d.ts +46 -23
  121. package/dist/FiberHandle.d.ts.map +1 -1
  122. package/dist/FiberHandle.js +27 -11
  123. package/dist/FiberHandle.js.map +1 -1
  124. package/dist/FiberMap.d.ts +43 -4
  125. package/dist/FiberMap.d.ts.map +1 -1
  126. package/dist/FiberMap.js +27 -4
  127. package/dist/FiberMap.js.map +1 -1
  128. package/dist/FiberSet.d.ts +21 -6
  129. package/dist/FiberSet.d.ts.map +1 -1
  130. package/dist/FiberSet.js +17 -6
  131. package/dist/FiberSet.js.map +1 -1
  132. package/dist/FileSystem.d.ts +64 -0
  133. package/dist/FileSystem.d.ts.map +1 -1
  134. package/dist/FileSystem.js +26 -0
  135. package/dist/FileSystem.js.map +1 -1
  136. package/dist/Filter.d.ts +53 -21
  137. package/dist/Filter.d.ts.map +1 -1
  138. package/dist/Filter.js +20 -9
  139. package/dist/Filter.js.map +1 -1
  140. package/dist/Formatter.d.ts +21 -22
  141. package/dist/Formatter.d.ts.map +1 -1
  142. package/dist/Formatter.js +12 -12
  143. package/dist/Formatter.js.map +1 -1
  144. package/dist/Function.d.ts +67 -75
  145. package/dist/Function.d.ts.map +1 -1
  146. package/dist/Function.js +29 -19
  147. package/dist/Function.js.map +1 -1
  148. package/dist/Graph.d.ts +51 -13
  149. package/dist/Graph.d.ts.map +1 -1
  150. package/dist/Graph.js +19 -3
  151. package/dist/Graph.js.map +1 -1
  152. package/dist/HKT.d.ts +22 -21
  153. package/dist/HKT.d.ts.map +1 -1
  154. package/dist/Hash.d.ts +33 -10
  155. package/dist/Hash.d.ts.map +1 -1
  156. package/dist/Hash.js +27 -10
  157. package/dist/Hash.js.map +1 -1
  158. package/dist/HashMap.d.ts +50 -9
  159. package/dist/HashMap.d.ts.map +1 -1
  160. package/dist/HashMap.js +17 -3
  161. package/dist/HashMap.js.map +1 -1
  162. package/dist/HashRing.d.ts +4 -0
  163. package/dist/HashRing.d.ts.map +1 -1
  164. package/dist/HashRing.js +2 -0
  165. package/dist/HashRing.js.map +1 -1
  166. package/dist/HashSet.d.ts +2 -0
  167. package/dist/HashSet.d.ts.map +1 -1
  168. package/dist/HashSet.js.map +1 -1
  169. package/dist/Inspectable.d.ts +15 -2
  170. package/dist/Inspectable.d.ts.map +1 -1
  171. package/dist/Inspectable.js +11 -2
  172. package/dist/Inspectable.js.map +1 -1
  173. package/dist/Iterable.d.ts +104 -22
  174. package/dist/Iterable.d.ts.map +1 -1
  175. package/dist/Iterable.js +46 -12
  176. package/dist/Iterable.js.map +1 -1
  177. package/dist/JsonPatch.d.ts +61 -80
  178. package/dist/JsonPatch.d.ts.map +1 -1
  179. package/dist/JsonPatch.js +35 -42
  180. package/dist/JsonPatch.js.map +1 -1
  181. package/dist/JsonPointer.d.ts +16 -20
  182. package/dist/JsonPointer.d.ts.map +1 -1
  183. package/dist/JsonPointer.js +16 -20
  184. package/dist/JsonPointer.js.map +1 -1
  185. package/dist/JsonSchema.d.ts +123 -73
  186. package/dist/JsonSchema.d.ts.map +1 -1
  187. package/dist/JsonSchema.js +95 -53
  188. package/dist/JsonSchema.js.map +1 -1
  189. package/dist/Latch.d.ts +28 -2
  190. package/dist/Latch.d.ts.map +1 -1
  191. package/dist/Latch.js +22 -2
  192. package/dist/Latch.js.map +1 -1
  193. package/dist/Layer.d.ts +781 -335
  194. package/dist/Layer.d.ts.map +1 -1
  195. package/dist/Layer.js +324 -129
  196. package/dist/Layer.js.map +1 -1
  197. package/dist/LogLevel.d.ts +86 -13
  198. package/dist/LogLevel.d.ts.map +1 -1
  199. package/dist/LogLevel.js +30 -4
  200. package/dist/LogLevel.js.map +1 -1
  201. package/dist/Logger.d.ts +63 -51
  202. package/dist/Logger.d.ts.map +1 -1
  203. package/dist/Logger.js +61 -51
  204. package/dist/Logger.js.map +1 -1
  205. package/dist/ManagedRuntime.d.ts +12 -0
  206. package/dist/ManagedRuntime.d.ts.map +1 -1
  207. package/dist/ManagedRuntime.js +1 -0
  208. package/dist/ManagedRuntime.js.map +1 -1
  209. package/dist/Match.d.ts +83 -1
  210. package/dist/Match.d.ts.map +1 -1
  211. package/dist/Match.js +31 -1
  212. package/dist/Match.js.map +1 -1
  213. package/dist/Metric.d.ts +89 -12
  214. package/dist/Metric.d.ts.map +1 -1
  215. package/dist/Metric.js +53 -8
  216. package/dist/Metric.js.map +1 -1
  217. package/dist/MutableHashMap.d.ts +14 -0
  218. package/dist/MutableHashMap.d.ts.map +1 -1
  219. package/dist/MutableHashMap.js +4 -0
  220. package/dist/MutableHashMap.js.map +1 -1
  221. package/dist/MutableHashSet.d.ts +2 -0
  222. package/dist/MutableHashSet.d.ts.map +1 -1
  223. package/dist/MutableHashSet.js.map +1 -1
  224. package/dist/MutableList.d.ts +24 -6
  225. package/dist/MutableList.d.ts.map +1 -1
  226. package/dist/MutableList.js +22 -6
  227. package/dist/MutableList.js.map +1 -1
  228. package/dist/MutableRef.d.ts +2 -0
  229. package/dist/MutableRef.d.ts.map +1 -1
  230. package/dist/MutableRef.js.map +1 -1
  231. package/dist/Newtype.d.ts +69 -30
  232. package/dist/Newtype.d.ts.map +1 -1
  233. package/dist/Newtype.js +52 -22
  234. package/dist/Newtype.js.map +1 -1
  235. package/dist/NonEmptyIterable.d.ts +6 -0
  236. package/dist/NonEmptyIterable.d.ts.map +1 -1
  237. package/dist/NonEmptyIterable.js +2 -0
  238. package/dist/NonEmptyIterable.js.map +1 -1
  239. package/dist/Number.d.ts +16 -30
  240. package/dist/Number.d.ts.map +1 -1
  241. package/dist/Number.js +6 -12
  242. package/dist/Number.js.map +1 -1
  243. package/dist/Optic.d.ts +90 -40
  244. package/dist/Optic.d.ts.map +1 -1
  245. package/dist/Optic.js +48 -24
  246. package/dist/Optic.js.map +1 -1
  247. package/dist/Option.d.ts +121 -111
  248. package/dist/Option.d.ts.map +1 -1
  249. package/dist/Option.js +56 -54
  250. package/dist/Option.js.map +1 -1
  251. package/dist/Order.d.ts +169 -167
  252. package/dist/Order.d.ts.map +1 -1
  253. package/dist/Order.js +135 -135
  254. package/dist/Order.js.map +1 -1
  255. package/dist/Ordering.d.ts +4 -0
  256. package/dist/Ordering.d.ts.map +1 -1
  257. package/dist/Ordering.js +2 -0
  258. package/dist/Ordering.js.map +1 -1
  259. package/dist/PartitionedSemaphore.d.ts +7 -5
  260. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  261. package/dist/PartitionedSemaphore.js +5 -5
  262. package/dist/PartitionedSemaphore.js.map +1 -1
  263. package/dist/Path.d.ts +8 -0
  264. package/dist/Path.d.ts.map +1 -1
  265. package/dist/Path.js +4 -0
  266. package/dist/Path.js.map +1 -1
  267. package/dist/Pipeable.d.ts +10 -0
  268. package/dist/Pipeable.d.ts.map +1 -1
  269. package/dist/Pipeable.js +8 -0
  270. package/dist/Pipeable.js.map +1 -1
  271. package/dist/PlatformError.d.ts +12 -0
  272. package/dist/PlatformError.d.ts.map +1 -1
  273. package/dist/PlatformError.js +10 -0
  274. package/dist/PlatformError.js.map +1 -1
  275. package/dist/Pool.d.ts +30 -16
  276. package/dist/Pool.d.ts.map +1 -1
  277. package/dist/Pool.js +30 -16
  278. package/dist/Pool.js.map +1 -1
  279. package/dist/Predicate.d.ts +520 -352
  280. package/dist/Predicate.d.ts.map +1 -1
  281. package/dist/Predicate.js +271 -184
  282. package/dist/Predicate.js.map +1 -1
  283. package/dist/PrimaryKey.d.ts +4 -0
  284. package/dist/PrimaryKey.d.ts.map +1 -1
  285. package/dist/PrimaryKey.js +2 -0
  286. package/dist/PrimaryKey.js.map +1 -1
  287. package/dist/PubSub.d.ts +22 -4
  288. package/dist/PubSub.d.ts.map +1 -1
  289. package/dist/PubSub.js +17 -3
  290. package/dist/PubSub.js.map +1 -1
  291. package/dist/Pull.d.ts +16 -0
  292. package/dist/Pull.d.ts.map +1 -1
  293. package/dist/Pull.js +10 -0
  294. package/dist/Pull.js.map +1 -1
  295. package/dist/Queue.d.ts +44 -0
  296. package/dist/Queue.d.ts.map +1 -1
  297. package/dist/Queue.js +28 -0
  298. package/dist/Queue.js.map +1 -1
  299. package/dist/Random.d.ts +25 -6
  300. package/dist/Random.d.ts.map +1 -1
  301. package/dist/Random.js +11 -2
  302. package/dist/Random.js.map +1 -1
  303. package/dist/RcMap.d.ts +10 -6
  304. package/dist/RcMap.d.ts.map +1 -1
  305. package/dist/RcMap.js +2 -2
  306. package/dist/RcMap.js.map +1 -1
  307. package/dist/RcRef.d.ts +3 -1
  308. package/dist/RcRef.d.ts.map +1 -1
  309. package/dist/RcRef.js.map +1 -1
  310. package/dist/Record.d.ts +24 -3
  311. package/dist/Record.d.ts.map +1 -1
  312. package/dist/Record.js +12 -3
  313. package/dist/Record.js.map +1 -1
  314. package/dist/Redactable.d.ts +54 -41
  315. package/dist/Redactable.d.ts.map +1 -1
  316. package/dist/Redactable.js +42 -32
  317. package/dist/Redactable.js.map +1 -1
  318. package/dist/Redacted.d.ts +10 -0
  319. package/dist/Redacted.d.ts.map +1 -1
  320. package/dist/Redacted.js +6 -0
  321. package/dist/Redacted.js.map +1 -1
  322. package/dist/Reducer.d.ts +20 -11
  323. package/dist/Reducer.d.ts.map +1 -1
  324. package/dist/Reducer.js +10 -6
  325. package/dist/Reducer.js.map +1 -1
  326. package/dist/Ref.d.ts +45 -24
  327. package/dist/Ref.d.ts.map +1 -1
  328. package/dist/Ref.js +41 -21
  329. package/dist/Ref.js.map +1 -1
  330. package/dist/References.d.ts +18 -1
  331. package/dist/References.d.ts.map +1 -1
  332. package/dist/References.js +17 -1
  333. package/dist/References.js.map +1 -1
  334. package/dist/Request.d.ts +3 -3
  335. package/dist/Request.js +2 -2
  336. package/dist/RequestResolver.d.ts +7 -17
  337. package/dist/RequestResolver.d.ts.map +1 -1
  338. package/dist/RequestResolver.js +3 -5
  339. package/dist/RequestResolver.js.map +1 -1
  340. package/dist/Resource.d.ts +2 -0
  341. package/dist/Resource.d.ts.map +1 -1
  342. package/dist/Resource.js +2 -0
  343. package/dist/Resource.js.map +1 -1
  344. package/dist/Result.d.ts +188 -6
  345. package/dist/Result.d.ts.map +1 -1
  346. package/dist/Result.js +84 -2
  347. package/dist/Result.js.map +1 -1
  348. package/dist/Runtime.d.ts +14 -11
  349. package/dist/Runtime.d.ts.map +1 -1
  350. package/dist/Runtime.js +11 -9
  351. package/dist/Runtime.js.map +1 -1
  352. package/dist/Schedule.d.ts +27 -3
  353. package/dist/Schedule.d.ts.map +1 -1
  354. package/dist/Schedule.js +21 -2
  355. package/dist/Schedule.js.map +1 -1
  356. package/dist/Scheduler.d.ts +22 -19
  357. package/dist/Scheduler.d.ts.map +1 -1
  358. package/dist/Scheduler.js +14 -12
  359. package/dist/Scheduler.js.map +1 -1
  360. package/dist/Schema.d.ts +547 -130
  361. package/dist/Schema.d.ts.map +1 -1
  362. package/dist/Schema.js +409 -121
  363. package/dist/Schema.js.map +1 -1
  364. package/dist/SchemaAST.d.ts +123 -65
  365. package/dist/SchemaAST.d.ts.map +1 -1
  366. package/dist/SchemaAST.js +90 -39
  367. package/dist/SchemaAST.js.map +1 -1
  368. package/dist/SchemaGetter.d.ts +269 -234
  369. package/dist/SchemaGetter.d.ts.map +1 -1
  370. package/dist/SchemaGetter.js +245 -215
  371. package/dist/SchemaGetter.js.map +1 -1
  372. package/dist/SchemaIssue.d.ts +48 -46
  373. package/dist/SchemaIssue.d.ts.map +1 -1
  374. package/dist/SchemaIssue.js +34 -34
  375. package/dist/SchemaIssue.js.map +1 -1
  376. package/dist/SchemaParser.d.ts +58 -0
  377. package/dist/SchemaParser.d.ts.map +1 -1
  378. package/dist/SchemaParser.js +58 -0
  379. package/dist/SchemaParser.js.map +1 -1
  380. package/dist/SchemaRepresentation.d.ts +198 -96
  381. package/dist/SchemaRepresentation.d.ts.map +1 -1
  382. package/dist/SchemaRepresentation.js +107 -45
  383. package/dist/SchemaRepresentation.js.map +1 -1
  384. package/dist/SchemaTransformation.d.ts +272 -203
  385. package/dist/SchemaTransformation.d.ts.map +1 -1
  386. package/dist/SchemaTransformation.js +249 -187
  387. package/dist/SchemaTransformation.js.map +1 -1
  388. package/dist/SchemaUtils.d.ts +2 -0
  389. package/dist/SchemaUtils.d.ts.map +1 -1
  390. package/dist/SchemaUtils.js +2 -0
  391. package/dist/SchemaUtils.js.map +1 -1
  392. package/dist/Scope.d.ts +18 -0
  393. package/dist/Scope.d.ts.map +1 -1
  394. package/dist/Scope.js +12 -0
  395. package/dist/Scope.js.map +1 -1
  396. package/dist/ScopedCache.d.ts +44 -0
  397. package/dist/ScopedCache.d.ts.map +1 -1
  398. package/dist/ScopedCache.js +18 -0
  399. package/dist/ScopedCache.js.map +1 -1
  400. package/dist/ScopedRef.d.ts +9 -3
  401. package/dist/ScopedRef.d.ts.map +1 -1
  402. package/dist/ScopedRef.js +3 -1
  403. package/dist/ScopedRef.js.map +1 -1
  404. package/dist/Semaphore.d.ts +6 -0
  405. package/dist/Semaphore.d.ts.map +1 -1
  406. package/dist/Semaphore.js +4 -0
  407. package/dist/Semaphore.js.map +1 -1
  408. package/dist/Sink.d.ts +108 -0
  409. package/dist/Sink.d.ts.map +1 -1
  410. package/dist/Sink.js +54 -0
  411. package/dist/Sink.js.map +1 -1
  412. package/dist/Stdio.d.ts +7 -3
  413. package/dist/Stdio.d.ts.map +1 -1
  414. package/dist/Stdio.js +2 -0
  415. package/dist/Stdio.js.map +1 -1
  416. package/dist/Stream.d.ts +416 -16
  417. package/dist/Stream.d.ts.map +1 -1
  418. package/dist/Stream.js +164 -8
  419. package/dist/Stream.js.map +1 -1
  420. package/dist/String.d.ts +14 -0
  421. package/dist/String.d.ts.map +1 -1
  422. package/dist/String.js +6 -0
  423. package/dist/String.js.map +1 -1
  424. package/dist/Struct.d.ts +371 -191
  425. package/dist/Struct.d.ts.map +1 -1
  426. package/dist/Struct.js +144 -77
  427. package/dist/Struct.js.map +1 -1
  428. package/dist/SubscriptionRef.d.ts +7 -1
  429. package/dist/SubscriptionRef.d.ts.map +1 -1
  430. package/dist/SubscriptionRef.js +5 -1
  431. package/dist/SubscriptionRef.js.map +1 -1
  432. package/dist/SynchronizedRef.d.ts +2 -0
  433. package/dist/SynchronizedRef.d.ts.map +1 -1
  434. package/dist/SynchronizedRef.js +2 -0
  435. package/dist/SynchronizedRef.js.map +1 -1
  436. package/dist/Tracer.d.ts +17 -27
  437. package/dist/Tracer.d.ts.map +1 -1
  438. package/dist/Tracer.js +8 -12
  439. package/dist/Tracer.js.map +1 -1
  440. package/dist/Trie.d.ts +23 -9
  441. package/dist/Trie.d.ts.map +1 -1
  442. package/dist/Trie.js +13 -3
  443. package/dist/Trie.js.map +1 -1
  444. package/dist/Tuple.d.ts +287 -144
  445. package/dist/Tuple.d.ts.map +1 -1
  446. package/dist/Tuple.js +135 -66
  447. package/dist/Tuple.js.map +1 -1
  448. package/dist/TxChunk.d.ts +182 -93
  449. package/dist/TxChunk.d.ts.map +1 -1
  450. package/dist/TxChunk.js +68 -35
  451. package/dist/TxChunk.js.map +1 -1
  452. package/dist/TxDeferred.d.ts +3 -4
  453. package/dist/TxDeferred.d.ts.map +1 -1
  454. package/dist/TxDeferred.js.map +1 -1
  455. package/dist/TxHashMap.d.ts +163 -86
  456. package/dist/TxHashMap.d.ts.map +1 -1
  457. package/dist/TxHashMap.js +57 -30
  458. package/dist/TxHashMap.js.map +1 -1
  459. package/dist/TxHashSet.d.ts +24 -27
  460. package/dist/TxHashSet.d.ts.map +1 -1
  461. package/dist/TxHashSet.js +9 -6
  462. package/dist/TxHashSet.js.map +1 -1
  463. package/dist/TxPriorityQueue.d.ts +2 -0
  464. package/dist/TxPriorityQueue.d.ts.map +1 -1
  465. package/dist/TxPriorityQueue.js.map +1 -1
  466. package/dist/TxPubSub.d.ts +36 -35
  467. package/dist/TxPubSub.d.ts.map +1 -1
  468. package/dist/TxPubSub.js +22 -21
  469. package/dist/TxPubSub.js.map +1 -1
  470. package/dist/TxQueue.d.ts +77 -114
  471. package/dist/TxQueue.d.ts.map +1 -1
  472. package/dist/TxQueue.js +45 -62
  473. package/dist/TxQueue.js.map +1 -1
  474. package/dist/TxRef.d.ts +4 -0
  475. package/dist/TxRef.d.ts.map +1 -1
  476. package/dist/TxRef.js +2 -0
  477. package/dist/TxRef.js.map +1 -1
  478. package/dist/TxSemaphore.d.ts +66 -27
  479. package/dist/TxSemaphore.d.ts.map +1 -1
  480. package/dist/TxSemaphore.js +38 -15
  481. package/dist/TxSemaphore.js.map +1 -1
  482. package/dist/Types.d.ts +202 -75
  483. package/dist/Types.d.ts.map +1 -1
  484. package/dist/UndefinedOr.d.ts +31 -29
  485. package/dist/UndefinedOr.d.ts.map +1 -1
  486. package/dist/UndefinedOr.js +27 -21
  487. package/dist/UndefinedOr.js.map +1 -1
  488. package/dist/Unify.d.ts +28 -0
  489. package/dist/Unify.d.ts.map +1 -1
  490. package/dist/Unify.js +2 -0
  491. package/dist/Unify.js.map +1 -1
  492. package/dist/Utils.d.ts +29 -35
  493. package/dist/Utils.d.ts.map +1 -1
  494. package/dist/Utils.js +11 -13
  495. package/dist/Utils.js.map +1 -1
  496. package/dist/index.d.ts +18 -7
  497. package/dist/index.d.ts.map +1 -1
  498. package/dist/index.js +18 -7
  499. package/dist/index.js.map +1 -1
  500. package/dist/testing/TestClock.d.ts +17 -17
  501. package/dist/testing/TestClock.js +1 -1
  502. package/dist/testing/TestClock.js.map +1 -1
  503. package/dist/testing/TestConsole.d.ts +2 -0
  504. package/dist/testing/TestConsole.d.ts.map +1 -1
  505. package/dist/testing/TestConsole.js.map +1 -1
  506. package/dist/testing/TestSchema.d.ts +43 -55
  507. package/dist/testing/TestSchema.d.ts.map +1 -1
  508. package/dist/testing/TestSchema.js +43 -55
  509. package/dist/testing/TestSchema.js.map +1 -1
  510. package/dist/unstable/ai/AiError.d.ts +62 -11
  511. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  512. package/dist/unstable/ai/AiError.js +58 -11
  513. package/dist/unstable/ai/AiError.js.map +1 -1
  514. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
  515. package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
  516. package/dist/unstable/ai/Chat.d.ts +29 -1
  517. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  518. package/dist/unstable/ai/Chat.js +15 -1
  519. package/dist/unstable/ai/Chat.js.map +1 -1
  520. package/dist/unstable/ai/IdGenerator.d.ts +10 -0
  521. package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
  522. package/dist/unstable/ai/IdGenerator.js +8 -0
  523. package/dist/unstable/ai/IdGenerator.js.map +1 -1
  524. package/dist/unstable/ai/LanguageModel.d.ts +32 -46
  525. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  526. package/dist/unstable/ai/LanguageModel.js +5 -14
  527. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  528. package/dist/unstable/ai/McpSchema.d.ts +84 -32
  529. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  530. package/dist/unstable/ai/McpSchema.js +73 -28
  531. package/dist/unstable/ai/McpSchema.js.map +1 -1
  532. package/dist/unstable/ai/McpServer.d.ts +8 -0
  533. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  534. package/dist/unstable/ai/McpServer.js +6 -0
  535. package/dist/unstable/ai/McpServer.js.map +1 -1
  536. package/dist/unstable/ai/Model.d.ts +9 -5
  537. package/dist/unstable/ai/Model.d.ts.map +1 -1
  538. package/dist/unstable/ai/Model.js +4 -0
  539. package/dist/unstable/ai/Model.js.map +1 -1
  540. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
  541. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
  542. package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
  543. package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
  544. package/dist/unstable/ai/Prompt.d.ts +62 -35
  545. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  546. package/dist/unstable/ai/Prompt.js +16 -15
  547. package/dist/unstable/ai/Prompt.js.map +1 -1
  548. package/dist/unstable/ai/Response.d.ts +40 -21
  549. package/dist/unstable/ai/Response.d.ts.map +1 -1
  550. package/dist/unstable/ai/Response.js +10 -0
  551. package/dist/unstable/ai/Response.js.map +1 -1
  552. package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
  553. package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
  554. package/dist/unstable/ai/ResponseIdTracker.js +4 -0
  555. package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
  556. package/dist/unstable/ai/Telemetry.d.ts +30 -5
  557. package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
  558. package/dist/unstable/ai/Telemetry.js +7 -1
  559. package/dist/unstable/ai/Telemetry.js.map +1 -1
  560. package/dist/unstable/ai/Tokenizer.d.ts +6 -0
  561. package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
  562. package/dist/unstable/ai/Tokenizer.js +4 -0
  563. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  564. package/dist/unstable/ai/Tool.d.ts +68 -0
  565. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  566. package/dist/unstable/ai/Tool.js +36 -0
  567. package/dist/unstable/ai/Tool.js.map +1 -1
  568. package/dist/unstable/ai/Toolkit.d.ts +12 -0
  569. package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
  570. package/dist/unstable/ai/Toolkit.js +6 -0
  571. package/dist/unstable/ai/Toolkit.js.map +1 -1
  572. package/dist/unstable/cli/Argument.d.ts +14 -4
  573. package/dist/unstable/cli/Argument.d.ts.map +1 -1
  574. package/dist/unstable/cli/Argument.js +4 -0
  575. package/dist/unstable/cli/Argument.js.map +1 -1
  576. package/dist/unstable/cli/CliError.d.ts +6 -0
  577. package/dist/unstable/cli/CliError.d.ts.map +1 -1
  578. package/dist/unstable/cli/CliError.js +4 -0
  579. package/dist/unstable/cli/CliError.js.map +1 -1
  580. package/dist/unstable/cli/Command.d.ts +123 -12
  581. package/dist/unstable/cli/Command.d.ts.map +1 -1
  582. package/dist/unstable/cli/Command.js +57 -4
  583. package/dist/unstable/cli/Command.js.map +1 -1
  584. package/dist/unstable/cli/Flag.d.ts +31 -14
  585. package/dist/unstable/cli/Flag.d.ts.map +1 -1
  586. package/dist/unstable/cli/Flag.js +23 -10
  587. package/dist/unstable/cli/Flag.js.map +1 -1
  588. package/dist/unstable/cli/Param.d.ts +10 -0
  589. package/dist/unstable/cli/Param.d.ts.map +1 -1
  590. package/dist/unstable/cli/Param.js +46 -5
  591. package/dist/unstable/cli/Param.js.map +1 -1
  592. package/dist/unstable/cli/Primitive.d.ts +10 -0
  593. package/dist/unstable/cli/Primitive.d.ts.map +1 -1
  594. package/dist/unstable/cli/Primitive.js +10 -0
  595. package/dist/unstable/cli/Primitive.js.map +1 -1
  596. package/dist/unstable/cli/Prompt.d.ts +47 -40
  597. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  598. package/dist/unstable/cli/Prompt.js +25 -20
  599. package/dist/unstable/cli/Prompt.js.map +1 -1
  600. package/dist/unstable/cli/internal/command.d.ts +1 -0
  601. package/dist/unstable/cli/internal/command.d.ts.map +1 -1
  602. package/dist/unstable/cli/internal/command.js +10 -2
  603. package/dist/unstable/cli/internal/command.js.map +1 -1
  604. package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
  605. package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
  606. package/dist/unstable/cli/internal/parser.js +8 -1
  607. package/dist/unstable/cli/internal/parser.js.map +1 -1
  608. package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
  609. package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
  610. package/dist/unstable/cluster/ClusterCron.js +2 -0
  611. package/dist/unstable/cluster/ClusterCron.js.map +1 -1
  612. package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
  613. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  614. package/dist/unstable/cluster/ClusterSchema.js +8 -0
  615. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  616. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
  617. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  618. package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
  619. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  620. package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
  621. package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
  622. package/dist/unstable/cluster/DeliverAt.js.map +1 -1
  623. package/dist/unstable/cluster/Entity.d.ts +24 -0
  624. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  625. package/dist/unstable/cluster/Entity.js +12 -0
  626. package/dist/unstable/cluster/Entity.js.map +1 -1
  627. package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
  628. package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
  629. package/dist/unstable/cluster/EntityProxy.js.map +1 -1
  630. package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
  631. package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
  632. package/dist/unstable/cluster/EntityProxyServer.js +4 -0
  633. package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
  634. package/dist/unstable/cluster/EntityResource.d.ts +10 -0
  635. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  636. package/dist/unstable/cluster/EntityResource.js +8 -0
  637. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  638. package/dist/unstable/cluster/Envelope.d.ts +16 -0
  639. package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
  640. package/dist/unstable/cluster/Envelope.js +10 -0
  641. package/dist/unstable/cluster/Envelope.js.map +1 -1
  642. package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
  643. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  644. package/dist/unstable/cluster/HttpRunner.js +16 -0
  645. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  646. package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
  647. package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
  648. package/dist/unstable/cluster/K8sHttpClient.js +8 -0
  649. package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
  650. package/dist/unstable/cluster/Message.d.ts +24 -0
  651. package/dist/unstable/cluster/Message.d.ts.map +1 -1
  652. package/dist/unstable/cluster/Message.js +18 -0
  653. package/dist/unstable/cluster/Message.js.map +1 -1
  654. package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
  655. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  656. package/dist/unstable/cluster/MessageStorage.js +8 -0
  657. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  658. package/dist/unstable/cluster/Reply.d.ts +6 -6
  659. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  660. package/dist/unstable/cluster/Reply.js +4 -3
  661. package/dist/unstable/cluster/Reply.js.map +1 -1
  662. package/dist/unstable/cluster/Runner.d.ts +2 -0
  663. package/dist/unstable/cluster/Runner.d.ts.map +1 -1
  664. package/dist/unstable/cluster/Runner.js +2 -0
  665. package/dist/unstable/cluster/Runner.js.map +1 -1
  666. package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
  667. package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
  668. package/dist/unstable/cluster/RunnerHealth.js +13 -2
  669. package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
  670. package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
  671. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  672. package/dist/unstable/cluster/RunnerServer.js +8 -8
  673. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  674. package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
  675. package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
  676. package/dist/unstable/cluster/RunnerStorage.js +2 -0
  677. package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
  678. package/dist/unstable/cluster/ShardId.d.ts +4 -0
  679. package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
  680. package/dist/unstable/cluster/ShardId.js +4 -0
  681. package/dist/unstable/cluster/ShardId.js.map +1 -1
  682. package/dist/unstable/cluster/Snowflake.d.ts +2 -0
  683. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  684. package/dist/unstable/cluster/Snowflake.js +2 -0
  685. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  686. package/dist/unstable/cluster/TestRunner.d.ts +3 -2
  687. package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
  688. package/dist/unstable/cluster/TestRunner.js +3 -2
  689. package/dist/unstable/cluster/TestRunner.js.map +1 -1
  690. package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
  691. package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
  692. package/dist/unstable/devtools/DevToolsSchema.js +14 -0
  693. package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
  694. package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
  695. package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
  696. package/dist/unstable/devtools/DevToolsServer.js +2 -0
  697. package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
  698. package/dist/unstable/encoding/Msgpack.d.ts +24 -0
  699. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  700. package/dist/unstable/encoding/Msgpack.js +18 -0
  701. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  702. package/dist/unstable/encoding/Ndjson.d.ts +46 -2
  703. package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
  704. package/dist/unstable/encoding/Ndjson.js +30 -2
  705. package/dist/unstable/encoding/Ndjson.js.map +1 -1
  706. package/dist/unstable/encoding/Sse.d.ts +24 -17
  707. package/dist/unstable/encoding/Sse.d.ts.map +1 -1
  708. package/dist/unstable/encoding/Sse.js +20 -11
  709. package/dist/unstable/encoding/Sse.js.map +1 -1
  710. package/dist/unstable/eventlog/Event.d.ts +16 -0
  711. package/dist/unstable/eventlog/Event.d.ts.map +1 -1
  712. package/dist/unstable/eventlog/Event.js.map +1 -1
  713. package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
  714. package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
  715. package/dist/unstable/eventlog/EventGroup.js +2 -0
  716. package/dist/unstable/eventlog/EventGroup.js.map +1 -1
  717. package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
  718. package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
  719. package/dist/unstable/eventlog/EventJournal.js +18 -0
  720. package/dist/unstable/eventlog/EventJournal.js.map +1 -1
  721. package/dist/unstable/eventlog/EventLog.d.ts +22 -0
  722. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  723. package/dist/unstable/eventlog/EventLog.js +18 -0
  724. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  725. package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
  726. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  727. package/dist/unstable/eventlog/EventLogMessage.js +10 -0
  728. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  729. package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
  730. package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
  731. package/dist/unstable/eventlog/EventLogRemote.js +4 -0
  732. package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
  733. package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
  734. package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
  735. package/dist/unstable/eventlog/EventLogServer.js +4 -0
  736. package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
  737. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
  738. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
  739. package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
  740. package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
  741. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
  742. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
  743. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
  744. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  745. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
  746. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
  747. package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
  748. package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
  749. package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
  750. package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
  751. package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
  752. package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
  753. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
  754. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
  755. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
  756. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  757. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
  758. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  759. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
  760. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  761. package/dist/unstable/http/Cookies.d.ts +34 -0
  762. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  763. package/dist/unstable/http/Cookies.js +18 -0
  764. package/dist/unstable/http/Cookies.js.map +1 -1
  765. package/dist/unstable/http/Etag.d.ts +4 -0
  766. package/dist/unstable/http/Etag.d.ts.map +1 -1
  767. package/dist/unstable/http/Etag.js.map +1 -1
  768. package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
  769. package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
  770. package/dist/unstable/http/FetchHttpClient.js +4 -0
  771. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  772. package/dist/unstable/http/Headers.d.ts +60 -0
  773. package/dist/unstable/http/Headers.d.ts.map +1 -1
  774. package/dist/unstable/http/Headers.js +24 -0
  775. package/dist/unstable/http/Headers.js.map +1 -1
  776. package/dist/unstable/http/HttpBody.d.ts +32 -0
  777. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  778. package/dist/unstable/http/HttpBody.js +22 -0
  779. package/dist/unstable/http/HttpBody.js.map +1 -1
  780. package/dist/unstable/http/HttpClient.d.ts +44 -0
  781. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  782. package/dist/unstable/http/HttpClient.js +14 -0
  783. package/dist/unstable/http/HttpClient.js.map +1 -1
  784. package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
  785. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  786. package/dist/unstable/http/HttpClientRequest.js +2 -0
  787. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  788. package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
  789. package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
  790. package/dist/unstable/http/HttpClientResponse.js +6 -0
  791. package/dist/unstable/http/HttpClientResponse.js.map +1 -1
  792. package/dist/unstable/http/HttpEffect.d.ts +4 -0
  793. package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
  794. package/dist/unstable/http/HttpEffect.js +4 -0
  795. package/dist/unstable/http/HttpEffect.js.map +1 -1
  796. package/dist/unstable/http/HttpPlatform.d.ts +2 -0
  797. package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
  798. package/dist/unstable/http/HttpPlatform.js +2 -0
  799. package/dist/unstable/http/HttpPlatform.js.map +1 -1
  800. package/dist/unstable/http/HttpRouter.d.ts +54 -16
  801. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  802. package/dist/unstable/http/HttpRouter.js +26 -1
  803. package/dist/unstable/http/HttpRouter.js.map +1 -1
  804. package/dist/unstable/http/HttpServer.d.ts +35 -1
  805. package/dist/unstable/http/HttpServer.d.ts.map +1 -1
  806. package/dist/unstable/http/HttpServer.js +17 -1
  807. package/dist/unstable/http/HttpServer.js.map +1 -1
  808. package/dist/unstable/http/HttpServerError.d.ts +17 -3
  809. package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
  810. package/dist/unstable/http/HttpServerError.js +16 -0
  811. package/dist/unstable/http/HttpServerError.js.map +1 -1
  812. package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
  813. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  814. package/dist/unstable/http/HttpServerRequest.js +28 -0
  815. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  816. package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
  817. package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
  818. package/dist/unstable/http/HttpServerRespondable.js +6 -0
  819. package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
  820. package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
  821. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  822. package/dist/unstable/http/HttpServerResponse.js +50 -0
  823. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  824. package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
  825. package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
  826. package/dist/unstable/http/HttpTraceContext.js +10 -0
  827. package/dist/unstable/http/HttpTraceContext.js.map +1 -1
  828. package/dist/unstable/http/Multipart.d.ts +49 -2
  829. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  830. package/dist/unstable/http/Multipart.js +35 -2
  831. package/dist/unstable/http/Multipart.js.map +1 -1
  832. package/dist/unstable/http/Template.d.ts +14 -0
  833. package/dist/unstable/http/Template.d.ts.map +1 -1
  834. package/dist/unstable/http/Template.js +4 -0
  835. package/dist/unstable/http/Template.js.map +1 -1
  836. package/dist/unstable/http/UrlParams.d.ts +64 -0
  837. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  838. package/dist/unstable/http/UrlParams.js +28 -0
  839. package/dist/unstable/http/UrlParams.js.map +1 -1
  840. package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
  841. package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
  842. package/dist/unstable/httpapi/HttpApi.js +4 -0
  843. package/dist/unstable/httpapi/HttpApi.js.map +1 -1
  844. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
  845. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  846. package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
  847. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  848. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
  849. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
  850. package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
  851. package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
  852. package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
  853. package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
  854. package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
  855. package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
  856. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
  857. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  858. package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
  859. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  860. package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
  861. package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
  862. package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
  863. package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
  864. package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
  865. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  866. package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
  867. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  868. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
  869. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  870. package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
  871. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  872. package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
  873. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  874. package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
  875. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  876. package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
  877. package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
  878. package/dist/unstable/httpapi/HttpApiTest.js +2 -0
  879. package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
  880. package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
  881. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  882. package/dist/unstable/httpapi/OpenApi.js +2 -0
  883. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  884. package/dist/unstable/observability/Otlp.d.ts +2 -0
  885. package/dist/unstable/observability/Otlp.d.ts.map +1 -1
  886. package/dist/unstable/observability/Otlp.js +2 -0
  887. package/dist/unstable/observability/Otlp.js.map +1 -1
  888. package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
  889. package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
  890. package/dist/unstable/observability/OtlpExporter.js +2 -0
  891. package/dist/unstable/observability/OtlpExporter.js.map +1 -1
  892. package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
  893. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  894. package/dist/unstable/observability/OtlpLogger.js +4 -0
  895. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  896. package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
  897. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  898. package/dist/unstable/observability/OtlpMetrics.js +3 -3
  899. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  900. package/dist/unstable/observability/OtlpResource.d.ts +8 -0
  901. package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
  902. package/dist/unstable/observability/OtlpResource.js +8 -0
  903. package/dist/unstable/observability/OtlpResource.js.map +1 -1
  904. package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
  905. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  906. package/dist/unstable/observability/OtlpTracer.js +3 -2
  907. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  908. package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
  909. package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
  910. package/dist/unstable/observability/PrometheusMetrics.js +6 -2
  911. package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
  912. package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
  913. package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
  914. package/dist/unstable/persistence/KeyValueStore.js +8 -0
  915. package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
  916. package/dist/unstable/persistence/Persistable.d.ts +2 -0
  917. package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
  918. package/dist/unstable/persistence/Persistable.js +2 -0
  919. package/dist/unstable/persistence/Persistable.js.map +1 -1
  920. package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
  921. package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
  922. package/dist/unstable/persistence/PersistedCache.js +2 -0
  923. package/dist/unstable/persistence/PersistedCache.js.map +1 -1
  924. package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
  925. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  926. package/dist/unstable/persistence/PersistedQueue.js +10 -0
  927. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  928. package/dist/unstable/persistence/Persistence.d.ts +14 -0
  929. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  930. package/dist/unstable/persistence/Persistence.js +14 -0
  931. package/dist/unstable/persistence/Persistence.js.map +1 -1
  932. package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
  933. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  934. package/dist/unstable/persistence/RateLimiter.js +4 -0
  935. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  936. package/dist/unstable/persistence/Redis.d.ts +6 -0
  937. package/dist/unstable/persistence/Redis.d.ts.map +1 -1
  938. package/dist/unstable/persistence/Redis.js +4 -0
  939. package/dist/unstable/persistence/Redis.js.map +1 -1
  940. package/dist/unstable/process/ChildProcess.d.ts +70 -19
  941. package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
  942. package/dist/unstable/process/ChildProcess.js +10 -0
  943. package/dist/unstable/process/ChildProcess.js.map +1 -1
  944. package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
  945. package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
  946. package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
  947. package/dist/unstable/reactivity/Atom.d.ts +105 -14
  948. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  949. package/dist/unstable/reactivity/Atom.js +53 -8
  950. package/dist/unstable/reactivity/Atom.js.map +1 -1
  951. package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
  952. package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
  953. package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
  954. package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
  955. package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
  956. package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
  957. package/dist/unstable/reactivity/AtomRef.js +2 -0
  958. package/dist/unstable/reactivity/AtomRef.js.map +1 -1
  959. package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
  960. package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
  961. package/dist/unstable/reactivity/AtomRegistry.js +12 -0
  962. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  963. package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
  964. package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
  965. package/dist/unstable/reactivity/AtomRpc.js +4 -3
  966. package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
  967. package/dist/unstable/reactivity/Hydration.d.ts +6 -0
  968. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  969. package/dist/unstable/reactivity/Hydration.js +4 -0
  970. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  971. package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
  972. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  973. package/dist/unstable/reactivity/Reactivity.js +15 -3
  974. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  975. package/dist/unstable/rpc/Rpc.d.ts +38 -2
  976. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  977. package/dist/unstable/rpc/Rpc.js +12 -2
  978. package/dist/unstable/rpc/Rpc.js.map +1 -1
  979. package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
  980. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  981. package/dist/unstable/rpc/RpcSerialization.js +6 -0
  982. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  983. package/dist/unstable/rpc/RpcServer.d.ts +5 -3
  984. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  985. package/dist/unstable/rpc/RpcServer.js +5 -3
  986. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  987. package/dist/unstable/schema/Model.d.ts +43 -12
  988. package/dist/unstable/schema/Model.d.ts.map +1 -1
  989. package/dist/unstable/schema/Model.js +41 -12
  990. package/dist/unstable/schema/Model.js.map +1 -1
  991. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  992. package/dist/unstable/sql/SqlResolver.d.ts +6 -4
  993. package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
  994. package/dist/unstable/sql/SqlResolver.js +6 -4
  995. package/dist/unstable/sql/SqlResolver.js.map +1 -1
  996. package/dist/unstable/sql/Statement.d.ts +8 -4
  997. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  998. package/dist/unstable/sql/Statement.js.map +1 -1
  999. package/dist/unstable/workflow/DurableClock.d.ts +1 -1
  1000. package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
  1001. package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
  1002. package/dist/unstable/workflow/DurableDeferred.js +3 -0
  1003. package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
  1004. package/dist/unstable/workflow/Workflow.d.ts +42 -34
  1005. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  1006. package/dist/unstable/workflow/Workflow.js +18 -19
  1007. package/dist/unstable/workflow/Workflow.js.map +1 -1
  1008. package/package.json +1 -1
  1009. package/src/Array.ts +454 -0
  1010. package/src/BigDecimal.ts +87 -33
  1011. package/src/BigInt.ts +71 -14
  1012. package/src/Boolean.ts +4 -0
  1013. package/src/Brand.ts +16 -11
  1014. package/src/Cache.ts +17 -1
  1015. package/src/Cause.ts +95 -3
  1016. package/src/Channel.ts +326 -0
  1017. package/src/ChannelSchema.ts +24 -0
  1018. package/src/Chunk.ts +59 -22
  1019. package/src/Combiner.ts +75 -71
  1020. package/src/Config.ts +167 -46
  1021. package/src/ConfigProvider.ts +235 -158
  1022. package/src/Console.ts +25 -99
  1023. package/src/Context.ts +4 -4
  1024. package/src/Cron.ts +42 -16
  1025. package/src/Crypto.ts +6 -0
  1026. package/src/Data.ts +132 -70
  1027. package/src/DateTime.ts +227 -14
  1028. package/src/Deferred.ts +94 -27
  1029. package/src/Differ.ts +2 -0
  1030. package/src/Duration.ts +64 -6
  1031. package/src/Effect.ts +909 -605
  1032. package/src/Effectable.ts +3 -1
  1033. package/src/Encoding.ts +16 -0
  1034. package/src/Equal.ts +52 -40
  1035. package/src/Equivalence.ts +190 -153
  1036. package/src/ErrorReporter.ts +35 -14
  1037. package/src/ExecutionPlan.ts +10 -3
  1038. package/src/Exit.ts +212 -6
  1039. package/src/Fiber.ts +8 -0
  1040. package/src/FiberHandle.ts +46 -23
  1041. package/src/FiberMap.ts +43 -4
  1042. package/src/FiberSet.ts +21 -6
  1043. package/src/FileSystem.ts +64 -0
  1044. package/src/Filter.ts +53 -21
  1045. package/src/Formatter.ts +21 -22
  1046. package/src/Function.ts +67 -75
  1047. package/src/Graph.ts +51 -13
  1048. package/src/HKT.ts +22 -21
  1049. package/src/Hash.ts +33 -10
  1050. package/src/HashMap.ts +50 -9
  1051. package/src/HashRing.ts +4 -0
  1052. package/src/HashSet.ts +2 -0
  1053. package/src/Inspectable.ts +15 -2
  1054. package/src/Iterable.ts +104 -22
  1055. package/src/JsonPatch.ts +61 -80
  1056. package/src/JsonPointer.ts +16 -20
  1057. package/src/JsonSchema.ts +123 -73
  1058. package/src/Latch.ts +28 -2
  1059. package/src/Layer.ts +781 -335
  1060. package/src/LogLevel.ts +86 -13
  1061. package/src/Logger.ts +71 -51
  1062. package/src/ManagedRuntime.ts +12 -0
  1063. package/src/Match.ts +83 -1
  1064. package/src/Metric.ts +105 -12
  1065. package/src/MutableHashMap.ts +18 -0
  1066. package/src/MutableHashSet.ts +2 -0
  1067. package/src/MutableList.ts +24 -6
  1068. package/src/MutableRef.ts +2 -0
  1069. package/src/Newtype.ts +69 -30
  1070. package/src/NonEmptyIterable.ts +6 -0
  1071. package/src/Number.ts +16 -30
  1072. package/src/Optic.ts +90 -40
  1073. package/src/Option.ts +121 -111
  1074. package/src/Order.ts +169 -167
  1075. package/src/Ordering.ts +4 -0
  1076. package/src/PartitionedSemaphore.ts +7 -5
  1077. package/src/Path.ts +8 -0
  1078. package/src/Pipeable.ts +10 -0
  1079. package/src/PlatformError.ts +12 -0
  1080. package/src/Pool.ts +30 -16
  1081. package/src/Predicate.ts +520 -352
  1082. package/src/PrimaryKey.ts +4 -0
  1083. package/src/PubSub.ts +23 -5
  1084. package/src/Pull.ts +16 -0
  1085. package/src/Queue.ts +44 -0
  1086. package/src/Random.ts +25 -6
  1087. package/src/RcMap.ts +10 -6
  1088. package/src/RcRef.ts +3 -1
  1089. package/src/Record.ts +24 -3
  1090. package/src/Redactable.ts +54 -41
  1091. package/src/Redacted.ts +10 -0
  1092. package/src/Reducer.ts +20 -11
  1093. package/src/Ref.ts +95 -58
  1094. package/src/References.ts +18 -1
  1095. package/src/Request.ts +3 -3
  1096. package/src/RequestResolver.ts +8 -22
  1097. package/src/Resource.ts +2 -0
  1098. package/src/Result.ts +192 -6
  1099. package/src/Runtime.ts +14 -11
  1100. package/src/Schedule.ts +35 -3
  1101. package/src/Scheduler.ts +22 -19
  1102. package/src/Schema.ts +547 -130
  1103. package/src/SchemaAST.ts +123 -65
  1104. package/src/SchemaGetter.ts +269 -234
  1105. package/src/SchemaIssue.ts +48 -46
  1106. package/src/SchemaParser.ts +58 -0
  1107. package/src/SchemaRepresentation.ts +198 -96
  1108. package/src/SchemaTransformation.ts +272 -203
  1109. package/src/SchemaUtils.ts +2 -0
  1110. package/src/Scope.ts +19 -1
  1111. package/src/ScopedCache.ts +56 -0
  1112. package/src/ScopedRef.ts +9 -3
  1113. package/src/Semaphore.ts +6 -0
  1114. package/src/Sink.ts +108 -0
  1115. package/src/Stdio.ts +7 -3
  1116. package/src/Stream.ts +464 -16
  1117. package/src/String.ts +14 -0
  1118. package/src/Struct.ts +371 -191
  1119. package/src/SubscriptionRef.ts +7 -1
  1120. package/src/SynchronizedRef.ts +2 -0
  1121. package/src/Tracer.ts +17 -27
  1122. package/src/Trie.ts +23 -9
  1123. package/src/Tuple.ts +287 -144
  1124. package/src/TxChunk.ts +182 -93
  1125. package/src/TxDeferred.ts +3 -4
  1126. package/src/TxHashMap.ts +171 -90
  1127. package/src/TxHashSet.ts +36 -35
  1128. package/src/TxPriorityQueue.ts +2 -0
  1129. package/src/TxPubSub.ts +36 -35
  1130. package/src/TxQueue.ts +77 -114
  1131. package/src/TxRef.ts +4 -0
  1132. package/src/TxSemaphore.ts +66 -27
  1133. package/src/Types.ts +202 -75
  1134. package/src/UndefinedOr.ts +31 -29
  1135. package/src/Unify.ts +28 -0
  1136. package/src/Utils.ts +29 -35
  1137. package/src/index.ts +18 -7
  1138. package/src/testing/TestClock.ts +16 -16
  1139. package/src/testing/TestConsole.ts +2 -0
  1140. package/src/testing/TestSchema.ts +43 -55
  1141. package/src/unstable/ai/AiError.ts +62 -11
  1142. package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
  1143. package/src/unstable/ai/Chat.ts +29 -1
  1144. package/src/unstable/ai/IdGenerator.ts +10 -0
  1145. package/src/unstable/ai/LanguageModel.ts +32 -46
  1146. package/src/unstable/ai/McpSchema.ts +84 -32
  1147. package/src/unstable/ai/McpServer.ts +8 -0
  1148. package/src/unstable/ai/Model.ts +9 -5
  1149. package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
  1150. package/src/unstable/ai/Prompt.ts +62 -35
  1151. package/src/unstable/ai/Response.ts +40 -21
  1152. package/src/unstable/ai/ResponseIdTracker.ts +8 -0
  1153. package/src/unstable/ai/Telemetry.ts +30 -5
  1154. package/src/unstable/ai/Tokenizer.ts +6 -0
  1155. package/src/unstable/ai/Tool.ts +68 -0
  1156. package/src/unstable/ai/Toolkit.ts +12 -0
  1157. package/src/unstable/cli/Argument.ts +14 -4
  1158. package/src/unstable/cli/CliError.ts +6 -0
  1159. package/src/unstable/cli/Command.ts +128 -12
  1160. package/src/unstable/cli/Flag.ts +31 -14
  1161. package/src/unstable/cli/Param.ts +96 -9
  1162. package/src/unstable/cli/Primitive.ts +10 -0
  1163. package/src/unstable/cli/Prompt.ts +47 -40
  1164. package/src/unstable/cli/internal/command.ts +11 -2
  1165. package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
  1166. package/src/unstable/cli/internal/parser.ts +8 -1
  1167. package/src/unstable/cluster/ClusterCron.ts +10 -1
  1168. package/src/unstable/cluster/ClusterSchema.ts +8 -0
  1169. package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
  1170. package/src/unstable/cluster/DeliverAt.ts +3 -4
  1171. package/src/unstable/cluster/Entity.ts +24 -0
  1172. package/src/unstable/cluster/EntityProxy.ts +10 -4
  1173. package/src/unstable/cluster/EntityProxyServer.ts +6 -0
  1174. package/src/unstable/cluster/EntityResource.ts +10 -0
  1175. package/src/unstable/cluster/Envelope.ts +16 -0
  1176. package/src/unstable/cluster/HttpRunner.ts +16 -0
  1177. package/src/unstable/cluster/K8sHttpClient.ts +8 -0
  1178. package/src/unstable/cluster/Message.ts +24 -0
  1179. package/src/unstable/cluster/MessageStorage.ts +44 -10
  1180. package/src/unstable/cluster/Reply.ts +6 -6
  1181. package/src/unstable/cluster/Runner.ts +2 -0
  1182. package/src/unstable/cluster/RunnerHealth.ts +13 -2
  1183. package/src/unstable/cluster/RunnerServer.ts +8 -8
  1184. package/src/unstable/cluster/RunnerStorage.ts +2 -0
  1185. package/src/unstable/cluster/ShardId.ts +4 -0
  1186. package/src/unstable/cluster/Snowflake.ts +2 -0
  1187. package/src/unstable/cluster/TestRunner.ts +3 -2
  1188. package/src/unstable/devtools/DevToolsSchema.ts +34 -2
  1189. package/src/unstable/devtools/DevToolsServer.ts +4 -0
  1190. package/src/unstable/encoding/Msgpack.ts +24 -0
  1191. package/src/unstable/encoding/Ndjson.ts +46 -2
  1192. package/src/unstable/encoding/Sse.ts +24 -17
  1193. package/src/unstable/eventlog/Event.ts +16 -0
  1194. package/src/unstable/eventlog/EventGroup.ts +4 -0
  1195. package/src/unstable/eventlog/EventJournal.ts +20 -0
  1196. package/src/unstable/eventlog/EventLog.ts +22 -0
  1197. package/src/unstable/eventlog/EventLogMessage.ts +10 -0
  1198. package/src/unstable/eventlog/EventLogRemote.ts +4 -0
  1199. package/src/unstable/eventlog/EventLogServer.ts +4 -0
  1200. package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
  1201. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
  1202. package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
  1203. package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
  1204. package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
  1205. package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
  1206. package/src/unstable/http/Cookies.ts +34 -0
  1207. package/src/unstable/http/Etag.ts +4 -0
  1208. package/src/unstable/http/FetchHttpClient.ts +4 -0
  1209. package/src/unstable/http/Headers.ts +88 -0
  1210. package/src/unstable/http/HttpBody.ts +32 -0
  1211. package/src/unstable/http/HttpClient.ts +44 -0
  1212. package/src/unstable/http/HttpClientRequest.ts +2 -0
  1213. package/src/unstable/http/HttpClientResponse.ts +6 -0
  1214. package/src/unstable/http/HttpEffect.ts +4 -0
  1215. package/src/unstable/http/HttpPlatform.ts +2 -0
  1216. package/src/unstable/http/HttpRouter.ts +54 -16
  1217. package/src/unstable/http/HttpServer.ts +35 -1
  1218. package/src/unstable/http/HttpServerError.ts +17 -3
  1219. package/src/unstable/http/HttpServerRequest.ts +30 -0
  1220. package/src/unstable/http/HttpServerRespondable.ts +8 -0
  1221. package/src/unstable/http/HttpServerResponse.ts +96 -0
  1222. package/src/unstable/http/HttpTraceContext.ts +12 -0
  1223. package/src/unstable/http/Multipart.ts +49 -2
  1224. package/src/unstable/http/Template.ts +14 -0
  1225. package/src/unstable/http/UrlParams.ts +64 -0
  1226. package/src/unstable/httpapi/HttpApi.ts +10 -4
  1227. package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
  1228. package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
  1229. package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
  1230. package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
  1231. package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
  1232. package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
  1233. package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
  1234. package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
  1235. package/src/unstable/httpapi/HttpApiTest.ts +2 -0
  1236. package/src/unstable/httpapi/OpenApi.ts +2 -0
  1237. package/src/unstable/observability/Otlp.ts +2 -0
  1238. package/src/unstable/observability/OtlpExporter.ts +2 -0
  1239. package/src/unstable/observability/OtlpLogger.ts +4 -0
  1240. package/src/unstable/observability/OtlpMetrics.ts +8 -9
  1241. package/src/unstable/observability/OtlpResource.ts +8 -0
  1242. package/src/unstable/observability/OtlpTracer.ts +3 -2
  1243. package/src/unstable/observability/PrometheusMetrics.ts +6 -2
  1244. package/src/unstable/persistence/KeyValueStore.ts +10 -0
  1245. package/src/unstable/persistence/Persistable.ts +2 -0
  1246. package/src/unstable/persistence/PersistedCache.ts +2 -0
  1247. package/src/unstable/persistence/PersistedQueue.ts +21 -6
  1248. package/src/unstable/persistence/Persistence.ts +14 -0
  1249. package/src/unstable/persistence/RateLimiter.ts +6 -3
  1250. package/src/unstable/persistence/Redis.ts +6 -0
  1251. package/src/unstable/process/ChildProcess.ts +70 -19
  1252. package/src/unstable/process/ChildProcessSpawner.ts +20 -4
  1253. package/src/unstable/reactivity/Atom.ts +119 -14
  1254. package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
  1255. package/src/unstable/reactivity/AtomRef.ts +8 -0
  1256. package/src/unstable/reactivity/AtomRegistry.ts +34 -0
  1257. package/src/unstable/reactivity/AtomRpc.ts +8 -6
  1258. package/src/unstable/reactivity/Hydration.ts +6 -0
  1259. package/src/unstable/reactivity/Reactivity.ts +27 -3
  1260. package/src/unstable/rpc/Rpc.ts +38 -2
  1261. package/src/unstable/rpc/RpcSerialization.ts +6 -0
  1262. package/src/unstable/rpc/RpcServer.ts +5 -3
  1263. package/src/unstable/schema/Model.ts +43 -12
  1264. package/src/unstable/sql/SqlClient.ts +1 -1
  1265. package/src/unstable/sql/SqlResolver.ts +6 -4
  1266. package/src/unstable/sql/Statement.ts +8 -4
  1267. package/src/unstable/workflow/DurableClock.ts +1 -1
  1268. package/src/unstable/workflow/DurableDeferred.ts +3 -0
  1269. package/src/unstable/workflow/Workflow.ts +42 -34
package/src/Predicate.ts CHANGED
@@ -46,12 +46,14 @@ import type { TupleOf, TupleOfAtLeast } from "./Types.ts"
46
46
  /**
47
47
  * A function that decides whether a value of type `A` satisfies a condition.
48
48
  *
49
- * When to use:
49
+ * **When to use**
50
+ *
50
51
  * - You want a reusable boolean check for `A`.
51
52
  * - You plan to combine checks with {@link and}/{@link or}.
52
53
  * - You want a simple filter predicate for arrays or iterables.
53
54
  *
54
- * Behavior:
55
+ * **Details**
56
+ *
55
57
  * - Pure function; does not mutate input.
56
58
  * - Returns `true` or `false`; never throws by itself.
57
59
  * - Does not narrow types unless you use {@link Refinement}.
@@ -66,8 +68,9 @@ import type { TupleOf, TupleOfAtLeast } from "./Types.ts"
66
68
  * console.log(isPositive(1))
67
69
  * ```
68
70
  *
69
- * See also: {@link Refinement}, {@link mapInput}, {@link and}
70
- *
71
+ * @see {@link Refinement}
72
+ * @see {@link mapInput}
73
+ * @see {@link and}
71
74
  * @category models
72
75
  * @since 2.0.0
73
76
  */
@@ -78,11 +81,13 @@ export interface Predicate<in A> {
78
81
  /**
79
82
  * Type-level lambda for higher-kinded usage of {@link Predicate}.
80
83
  *
81
- * When to use:
84
+ * **When to use**
85
+ *
82
86
  * - You are defining APIs that abstract over predicates with HKTs.
83
87
  * - You need a `TypeLambda` instance for predicate-based type classes.
84
88
  *
85
- * Behavior:
89
+ * **Details**
90
+ *
86
91
  * - Type-only; no runtime value is created.
87
92
  * - Does not affect emitted JavaScript.
88
93
  *
@@ -95,8 +100,7 @@ export interface Predicate<in A> {
95
100
  * type TL = Predicate.PredicateTypeLambda
96
101
  * ```
97
102
  *
98
- * See also: {@link Predicate}
99
- *
103
+ * @see {@link Predicate}
100
104
  * @category type lambdas
101
105
  * @since 2.0.0
102
106
  */
@@ -107,12 +111,14 @@ export interface PredicateTypeLambda extends TypeLambda {
107
111
  /**
108
112
  * A predicate that also narrows the input type when it returns `true`.
109
113
  *
110
- * When to use:
114
+ * **When to use**
115
+ *
111
116
  * - You want a runtime check that refines `A` to `B` for TypeScript.
112
117
  * - You want to compose multiple type guards with {@link compose}.
113
118
  * - You need to guard `unknown` values safely.
114
119
  *
115
- * Behavior:
120
+ * **Details**
121
+ *
116
122
  * - Pure function; does not mutate input.
117
123
  * - Returns a type predicate (`a is B`).
118
124
  * - Use with `if`/`filter` to narrow types.
@@ -130,8 +136,9 @@ export interface PredicateTypeLambda extends TypeLambda {
130
136
  * }
131
137
  * ```
132
138
  *
133
- * See also: {@link Predicate}, {@link compose}, {@link isString}
134
- *
139
+ * @see {@link Predicate}
140
+ * @see {@link compose}
141
+ * @see {@link isString}
135
142
  * @category models
136
143
  * @since 2.0.0
137
144
  */
@@ -142,11 +149,13 @@ export interface Refinement<in A, out B extends A> {
142
149
  /**
143
150
  * Type-level utilities for working with {@link Predicate} types.
144
151
  *
145
- * When to use:
152
+ * **When to use**
153
+ *
146
154
  * - You need to extract input types from predicate signatures.
147
155
  * - You want to write generic helpers over predicate types.
148
156
  *
149
- * Behavior:
157
+ * **Details**
158
+ *
150
159
  * - Type-only; no runtime value is created.
151
160
  * - The namespace is erased at runtime.
152
161
  *
@@ -159,19 +168,21 @@ export interface Refinement<in A, out B extends A> {
159
168
  * type Input = Predicate.Predicate.In<IsString>
160
169
  * ```
161
170
  *
162
- * See also: {@link Predicate}, {@link Refinement}
163
- *
171
+ * @see {@link Predicate}
172
+ * @see {@link Refinement}
164
173
  * @since 3.6.0
165
174
  */
166
175
  export declare namespace Predicate {
167
176
  /**
168
177
  * Extracts the input type `A` from a `Predicate<A>`.
169
178
  *
170
- * When to use:
179
+ * **When to use**
180
+ *
171
181
  * - You want to infer the input type from a predicate type.
172
182
  * - You are defining generic utilities over predicates.
173
183
  *
174
- * Behavior:
184
+ * **Details**
185
+ *
175
186
  * - Type-only; no runtime value is created.
176
187
  * - Resolves to `never` if the type does not match `Predicate`.
177
188
  *
@@ -184,8 +195,8 @@ export declare namespace Predicate {
184
195
  * type Input = Predicate.Predicate.In<P>
185
196
  * ```
186
197
  *
187
- * See also: {@link Predicate.Any}, {@link Refinement.In}
188
- *
198
+ * @see {@link Predicate.Any}
199
+ * @see {@link Refinement.In}
189
200
  * @category type-level
190
201
  * @since 3.6.0
191
202
  */
@@ -194,10 +205,12 @@ export declare namespace Predicate {
194
205
  /**
195
206
  * A utility type representing any predicate type.
196
207
  *
197
- * When to use:
208
+ * **When to use**
209
+ *
198
210
  * - You need a constraint for "any predicate" in generic code.
199
211
  *
200
- * Behavior:
212
+ * **Details**
213
+ *
201
214
  * - Type-only; no runtime value is created.
202
215
  *
203
216
  * **Example** (Generic constraint)
@@ -208,8 +221,7 @@ export declare namespace Predicate {
208
221
  * type AnyPredicate = Predicate.Predicate.Any
209
222
  * ```
210
223
  *
211
- * See also: {@link Predicate.In}
212
- *
224
+ * @see {@link Predicate.In}
213
225
  * @category type-level
214
226
  * @since 3.6.0
215
227
  */
@@ -219,11 +231,13 @@ export declare namespace Predicate {
219
231
  /**
220
232
  * Type-level utilities for working with {@link Refinement} types.
221
233
  *
222
- * When to use:
234
+ * **When to use**
235
+ *
223
236
  * - You need to extract input/output types from refinement signatures.
224
237
  * - You want to write generic helpers over refinements.
225
238
  *
226
- * Behavior:
239
+ * **Details**
240
+ *
227
241
  * - Type-only; no runtime value is created.
228
242
  * - The namespace is erased at runtime.
229
243
  *
@@ -237,18 +251,20 @@ export declare namespace Predicate {
237
251
  * type Output = Predicate.Refinement.Out<IsString>
238
252
  * ```
239
253
  *
240
- * See also: {@link Refinement}, {@link Predicate}
241
- *
254
+ * @see {@link Refinement}
255
+ * @see {@link Predicate}
242
256
  * @since 3.6.0
243
257
  */
244
258
  export declare namespace Refinement {
245
259
  /**
246
260
  * Extracts the input type `A` from a `Refinement<A, B>`.
247
261
  *
248
- * When to use:
262
+ * **When to use**
263
+ *
249
264
  * - You want to infer the input type from a refinement type.
250
265
  *
251
- * Behavior:
266
+ * **Details**
267
+ *
252
268
  * - Type-only; no runtime value is created.
253
269
  * - Resolves to `never` if the type does not match `Refinement`.
254
270
  *
@@ -261,8 +277,8 @@ export declare namespace Refinement {
261
277
  * type Input = Predicate.Refinement.In<R>
262
278
  * ```
263
279
  *
264
- * See also: {@link Refinement.Out}, {@link Predicate.In}
265
- *
280
+ * @see {@link Refinement.Out}
281
+ * @see {@link Predicate.In}
266
282
  * @category type-level
267
283
  * @since 3.6.0
268
284
  */
@@ -272,10 +288,12 @@ export declare namespace Refinement {
272
288
  /**
273
289
  * Extracts the output type `B` from a `Refinement<A, B>`.
274
290
  *
275
- * When to use:
291
+ * **When to use**
292
+ *
276
293
  * - You want to infer the narrowed type from a refinement type.
277
294
  *
278
- * Behavior:
295
+ * **Details**
296
+ *
279
297
  * - Type-only; no runtime value is created.
280
298
  * - Resolves to `never` if the type does not match `Refinement`.
281
299
  *
@@ -288,8 +306,7 @@ export declare namespace Refinement {
288
306
  * type Output = Predicate.Refinement.Out<R>
289
307
  * ```
290
308
  *
291
- * See also: {@link Refinement.In}
292
- *
309
+ * @see {@link Refinement.In}
293
310
  * @category type-level
294
311
  * @since 3.6.0
295
312
  */
@@ -298,10 +315,12 @@ export declare namespace Refinement {
298
315
  /**
299
316
  * A utility type representing any refinement type.
300
317
  *
301
- * When to use:
318
+ * **When to use**
319
+ *
302
320
  * - You need a constraint for "any refinement" in generic code.
303
321
  *
304
- * Behavior:
322
+ * **Details**
323
+ *
305
324
  * - Type-only; no runtime value is created.
306
325
  *
307
326
  * **Example** (Generic constraint)
@@ -312,8 +331,8 @@ export declare namespace Refinement {
312
331
  * type AnyRefinement = Predicate.Refinement.Any
313
332
  * ```
314
333
  *
315
- * See also: {@link Refinement.In}, {@link Refinement.Out}
316
- *
334
+ * @see {@link Refinement.In}
335
+ * @see {@link Refinement.Out}
317
336
  * @category type-level
318
337
  * @since 3.6.0
319
338
  */
@@ -323,11 +342,13 @@ export declare namespace Refinement {
323
342
  /**
324
343
  * Transforms the input of a predicate using a mapping function.
325
344
  *
326
- * When to use:
345
+ * **When to use**
346
+ *
327
347
  * - You have a predicate on `A` and want one on `B` via `B -> A`.
328
348
  * - You want to check derived values (lengths, projections, etc.).
329
349
  *
330
- * Behavior:
350
+ * **Details**
351
+ *
331
352
  * - Pure; does not mutate input.
332
353
  * - Returns a new predicate that applies `f` before `self`.
333
354
  * - No short-circuit beyond what `self` does.
@@ -344,8 +365,9 @@ export declare namespace Refinement {
344
365
  * console.log(isLongerThan2("hello"))
345
366
  * ```
346
367
  *
347
- * See also: {@link Predicate}, {@link and}, {@link not}
348
- *
368
+ * @see {@link Predicate}
369
+ * @see {@link and}
370
+ * @see {@link not}
349
371
  * @category combinators
350
372
  * @since 2.0.0
351
373
  */
@@ -353,11 +375,13 @@ export const mapInput: {
353
375
  /**
354
376
  * Transforms the input of a predicate using a mapping function.
355
377
  *
356
- * When to use:
378
+ * **When to use**
379
+ *
357
380
  * - You have a predicate on `A` and want one on `B` via `B -> A`.
358
381
  * - You want to check derived values (lengths, projections, etc.).
359
382
  *
360
- * Behavior:
383
+ * **Details**
384
+ *
361
385
  * - Pure; does not mutate input.
362
386
  * - Returns a new predicate that applies `f` before `self`.
363
387
  * - No short-circuit beyond what `self` does.
@@ -374,8 +398,9 @@ export const mapInput: {
374
398
  * console.log(isLongerThan2("hello"))
375
399
  * ```
376
400
  *
377
- * See also: {@link Predicate}, {@link and}, {@link not}
378
- *
401
+ * @see {@link Predicate}
402
+ * @see {@link and}
403
+ * @see {@link not}
379
404
  * @category combinators
380
405
  * @since 2.0.0
381
406
  */
@@ -383,11 +408,13 @@ export const mapInput: {
383
408
  /**
384
409
  * Transforms the input of a predicate using a mapping function.
385
410
  *
386
- * When to use:
411
+ * **When to use**
412
+ *
387
413
  * - You have a predicate on `A` and want one on `B` via `B -> A`.
388
414
  * - You want to check derived values (lengths, projections, etc.).
389
415
  *
390
- * Behavior:
416
+ * **Details**
417
+ *
391
418
  * - Pure; does not mutate input.
392
419
  * - Returns a new predicate that applies `f` before `self`.
393
420
  * - No short-circuit beyond what `self` does.
@@ -404,8 +431,9 @@ export const mapInput: {
404
431
  * console.log(isLongerThan2("hello"))
405
432
  * ```
406
433
  *
407
- * See also: {@link Predicate}, {@link and}, {@link not}
408
- *
434
+ * @see {@link Predicate}
435
+ * @see {@link and}
436
+ * @see {@link not}
409
437
  * @category combinators
410
438
  * @since 2.0.0
411
439
  */
@@ -415,11 +443,13 @@ export const mapInput: {
415
443
  /**
416
444
  * Checks whether a readonly array has exactly `n` elements.
417
445
  *
418
- * When to use:
446
+ * **When to use**
447
+ *
419
448
  * - You need a runtime check for tuple length.
420
449
  * - You want to narrow `ReadonlyArray<T>` to `TupleOf<N, T>`.
421
450
  *
422
- * Behavior:
451
+ * **Details**
452
+ *
423
453
  * - Pure; does not mutate input.
424
454
  * - Only checks length, not element types.
425
455
  * - Returns a refinement on the array type.
@@ -434,8 +464,8 @@ export const mapInput: {
434
464
  * console.log(isPair([1, 2]))
435
465
  * ```
436
466
  *
437
- * See also: {@link isTupleOfAtLeast}, {@link Tuple}
438
- *
467
+ * @see {@link isTupleOfAtLeast}
468
+ * @see {@link Tuple}
439
469
  * @category guards
440
470
  * @since 3.3.0
441
471
  */
@@ -443,11 +473,13 @@ export const isTupleOf: {
443
473
  /**
444
474
  * Checks whether a readonly array has exactly `n` elements.
445
475
  *
446
- * When to use:
476
+ * **When to use**
477
+ *
447
478
  * - You need a runtime check for tuple length.
448
479
  * - You want to narrow `ReadonlyArray<T>` to `TupleOf<N, T>`.
449
480
  *
450
- * Behavior:
481
+ * **Details**
482
+ *
451
483
  * - Pure; does not mutate input.
452
484
  * - Only checks length, not element types.
453
485
  * - Returns a refinement on the array type.
@@ -462,8 +494,8 @@ export const isTupleOf: {
462
494
  * console.log(isPair([1, 2]))
463
495
  * ```
464
496
  *
465
- * See also: {@link isTupleOfAtLeast}, {@link Tuple}
466
- *
497
+ * @see {@link isTupleOfAtLeast}
498
+ * @see {@link Tuple}
467
499
  * @category guards
468
500
  * @since 3.3.0
469
501
  */
@@ -471,11 +503,13 @@ export const isTupleOf: {
471
503
  /**
472
504
  * Checks whether a readonly array has exactly `n` elements.
473
505
  *
474
- * When to use:
506
+ * **When to use**
507
+ *
475
508
  * - You need a runtime check for tuple length.
476
509
  * - You want to narrow `ReadonlyArray<T>` to `TupleOf<N, T>`.
477
510
  *
478
- * Behavior:
511
+ * **Details**
512
+ *
479
513
  * - Pure; does not mutate input.
480
514
  * - Only checks length, not element types.
481
515
  * - Returns a refinement on the array type.
@@ -490,8 +524,8 @@ export const isTupleOf: {
490
524
  * console.log(isPair([1, 2]))
491
525
  * ```
492
526
  *
493
- * See also: {@link isTupleOfAtLeast}, {@link Tuple}
494
- *
527
+ * @see {@link isTupleOfAtLeast}
528
+ * @see {@link Tuple}
495
529
  * @category guards
496
530
  * @since 3.3.0
497
531
  */
@@ -501,11 +535,13 @@ export const isTupleOf: {
501
535
  /**
502
536
  * Checks whether a readonly array has at least `n` elements.
503
537
  *
504
- * When to use:
538
+ * **When to use**
539
+ *
505
540
  * - You need a runtime check for tuple-like minimum length.
506
541
  * - You want to narrow `ReadonlyArray<T>` to `TupleOfAtLeast<N, T>`.
507
542
  *
508
- * Behavior:
543
+ * **Details**
544
+ *
509
545
  * - Pure; does not mutate input.
510
546
  * - Only checks length, not element types.
511
547
  * - Returns a refinement on the array type.
@@ -520,8 +556,8 @@ export const isTupleOf: {
520
556
  * console.log(hasAtLeast2([1, 2, 3]))
521
557
  * ```
522
558
  *
523
- * See also: {@link isTupleOf}, {@link Tuple}
524
- *
559
+ * @see {@link isTupleOf}
560
+ * @see {@link Tuple}
525
561
  * @category guards
526
562
  * @since 3.3.0
527
563
  */
@@ -529,11 +565,13 @@ export const isTupleOfAtLeast: {
529
565
  /**
530
566
  * Checks whether a readonly array has at least `n` elements.
531
567
  *
532
- * When to use:
568
+ * **When to use**
569
+ *
533
570
  * - You need a runtime check for tuple-like minimum length.
534
571
  * - You want to narrow `ReadonlyArray<T>` to `TupleOfAtLeast<N, T>`.
535
572
  *
536
- * Behavior:
573
+ * **Details**
574
+ *
537
575
  * - Pure; does not mutate input.
538
576
  * - Only checks length, not element types.
539
577
  * - Returns a refinement on the array type.
@@ -548,8 +586,8 @@ export const isTupleOfAtLeast: {
548
586
  * console.log(hasAtLeast2([1, 2, 3]))
549
587
  * ```
550
588
  *
551
- * See also: {@link isTupleOf}, {@link Tuple}
552
- *
589
+ * @see {@link isTupleOf}
590
+ * @see {@link Tuple}
553
591
  * @category guards
554
592
  * @since 3.3.0
555
593
  */
@@ -557,11 +595,13 @@ export const isTupleOfAtLeast: {
557
595
  /**
558
596
  * Checks whether a readonly array has at least `n` elements.
559
597
  *
560
- * When to use:
598
+ * **When to use**
599
+ *
561
600
  * - You need a runtime check for tuple-like minimum length.
562
601
  * - You want to narrow `ReadonlyArray<T>` to `TupleOfAtLeast<N, T>`.
563
602
  *
564
- * Behavior:
603
+ * **Details**
604
+ *
565
605
  * - Pure; does not mutate input.
566
606
  * - Only checks length, not element types.
567
607
  * - Returns a refinement on the array type.
@@ -576,8 +616,8 @@ export const isTupleOfAtLeast: {
576
616
  * console.log(hasAtLeast2([1, 2, 3]))
577
617
  * ```
578
618
  *
579
- * See also: {@link isTupleOf}, {@link Tuple}
580
- *
619
+ * @see {@link isTupleOf}
620
+ * @see {@link Tuple}
581
621
  * @category guards
582
622
  * @since 3.3.0
583
623
  */
@@ -587,11 +627,13 @@ export const isTupleOfAtLeast: {
587
627
  /**
588
628
  * Checks whether a value is truthy.
589
629
  *
590
- * When to use:
630
+ * **When to use**
631
+ *
591
632
  * - You want a predicate that mirrors JavaScript truthiness.
592
633
  * - You need to filter out falsy values like `0`, "", and `false`.
593
634
  *
594
- * Behavior:
635
+ * **Details**
636
+ *
595
637
  * - Pure; does not mutate input.
596
638
  * - Uses `!!input` under the hood.
597
639
  * - Treats `0`, "", `false`, `null`, and `undefined` as false.
@@ -607,8 +649,8 @@ export const isTupleOfAtLeast: {
607
649
  * console.log(truthy)
608
650
  * ```
609
651
  *
610
- * See also: {@link isNullish}, {@link isNotNullish}
611
- *
652
+ * @see {@link isNullish}
653
+ * @see {@link isNotNullish}
612
654
  * @category guards
613
655
  * @since 2.0.0
614
656
  */
@@ -619,10 +661,12 @@ export function isTruthy(input: unknown): boolean {
619
661
  /**
620
662
  * Checks whether a value is a `Set`.
621
663
  *
622
- * When to use:
664
+ * **When to use**
665
+ *
623
666
  * - You need a runtime guard for `Set` values.
624
667
  *
625
- * Behavior:
668
+ * **Details**
669
+ *
626
670
  * - Pure; does not mutate input.
627
671
  * - Uses `instanceof Set`.
628
672
  *
@@ -638,8 +682,8 @@ export function isTruthy(input: unknown): boolean {
638
682
  * }
639
683
  * ```
640
684
  *
641
- * See also: {@link isMap}, {@link isIterable}
642
- *
685
+ * @see {@link isMap}
686
+ * @see {@link isIterable}
643
687
  * @category guards
644
688
  * @since 2.0.0
645
689
  */
@@ -650,10 +694,12 @@ export function isSet(input: unknown): input is Set<unknown> {
650
694
  /**
651
695
  * Checks whether a value is a `Map`.
652
696
  *
653
- * When to use:
697
+ * **When to use**
698
+ *
654
699
  * - You need a runtime guard for `Map` values.
655
700
  *
656
- * Behavior:
701
+ * **Details**
702
+ *
657
703
  * - Pure; does not mutate input.
658
704
  * - Uses `instanceof Map`.
659
705
  *
@@ -669,8 +715,8 @@ export function isSet(input: unknown): input is Set<unknown> {
669
715
  * }
670
716
  * ```
671
717
  *
672
- * See also: {@link isSet}, {@link isIterable}
673
- *
718
+ * @see {@link isSet}
719
+ * @see {@link isIterable}
674
720
  * @category guards
675
721
  * @since 2.0.0
676
722
  */
@@ -681,11 +727,13 @@ export function isMap(input: unknown): input is Map<unknown, unknown> {
681
727
  /**
682
728
  * Checks whether a value is a `string`.
683
729
  *
684
- * When to use:
730
+ * **When to use**
731
+ *
685
732
  * - You need to guard an `unknown` value as a string.
686
733
  * - You want to narrow in `if` statements.
687
734
  *
688
- * Behavior:
735
+ * **Details**
736
+ *
689
737
  * - Pure; does not mutate input.
690
738
  * - Uses `typeof input === "string"`.
691
739
  *
@@ -701,8 +749,9 @@ export function isMap(input: unknown): input is Map<unknown, unknown> {
701
749
  * }
702
750
  * ```
703
751
  *
704
- * See also: {@link isNumber}, {@link isBoolean}, {@link Refinement}
705
- *
752
+ * @see {@link isNumber}
753
+ * @see {@link isBoolean}
754
+ * @see {@link Refinement}
706
755
  * @category guards
707
756
  * @since 2.0.0
708
757
  */
@@ -713,10 +762,12 @@ export function isString(input: unknown): input is string {
713
762
  /**
714
763
  * Checks whether a value is a `number`.
715
764
  *
716
- * When to use:
765
+ * **When to use**
766
+ *
717
767
  * - You need to guard an `unknown` value as a number.
718
768
  *
719
- * Behavior:
769
+ * **Details**
770
+ *
720
771
  * - Pure; does not mutate input.
721
772
  * - Uses `typeof input === "number"`.
722
773
  * - Does not exclude `NaN` or `Infinity`.
@@ -733,8 +784,8 @@ export function isString(input: unknown): input is string {
733
784
  * }
734
785
  * ```
735
786
  *
736
- * See also: {@link isBigInt}, {@link isString}
737
- *
787
+ * @see {@link isBigInt}
788
+ * @see {@link isString}
738
789
  * @category guards
739
790
  * @since 2.0.0
740
791
  */
@@ -745,10 +796,12 @@ export function isNumber(input: unknown): input is number {
745
796
  /**
746
797
  * Checks whether a value is a `boolean`.
747
798
  *
748
- * When to use:
799
+ * **When to use**
800
+ *
749
801
  * - You need to guard an `unknown` value as a boolean.
750
802
  *
751
- * Behavior:
803
+ * **Details**
804
+ *
752
805
  * - Pure; does not mutate input.
753
806
  * - Uses `typeof input === "boolean"`.
754
807
  *
@@ -764,8 +817,8 @@ export function isNumber(input: unknown): input is number {
764
817
  * }
765
818
  * ```
766
819
  *
767
- * See also: {@link isString}, {@link isNumber}
768
- *
820
+ * @see {@link isString}
821
+ * @see {@link isNumber}
769
822
  * @category guards
770
823
  * @since 2.0.0
771
824
  */
@@ -776,10 +829,12 @@ export function isBoolean(input: unknown): input is boolean {
776
829
  /**
777
830
  * Checks whether a value is a `bigint`.
778
831
  *
779
- * When to use:
832
+ * **When to use**
833
+ *
780
834
  * - You need to guard an `unknown` value as a bigint.
781
835
  *
782
- * Behavior:
836
+ * **Details**
837
+ *
783
838
  * - Pure; does not mutate input.
784
839
  * - Uses `typeof input === "bigint"`.
785
840
  *
@@ -795,8 +850,7 @@ export function isBoolean(input: unknown): input is boolean {
795
850
  * }
796
851
  * ```
797
852
  *
798
- * See also: {@link isNumber}
799
- *
853
+ * @see {@link isNumber}
800
854
  * @category guards
801
855
  * @since 2.0.0
802
856
  */
@@ -807,10 +861,12 @@ export function isBigInt(input: unknown): input is bigint {
807
861
  /**
808
862
  * Checks whether a value is a `symbol`.
809
863
  *
810
- * When to use:
864
+ * **When to use**
865
+ *
811
866
  * - You need to guard an `unknown` value as a symbol.
812
867
  *
813
- * Behavior:
868
+ * **Details**
869
+ *
814
870
  * - Pure; does not mutate input.
815
871
  * - Uses `typeof input === "symbol"`.
816
872
  *
@@ -826,8 +882,7 @@ export function isBigInt(input: unknown): input is bigint {
826
882
  * }
827
883
  * ```
828
884
  *
829
- * See also: {@link isPropertyKey}
830
- *
885
+ * @see {@link isPropertyKey}
831
886
  * @category guards
832
887
  * @since 2.0.0
833
888
  */
@@ -838,10 +893,12 @@ export function isSymbol(input: unknown): input is symbol {
838
893
  /**
839
894
  * Checks whether a value is a valid `PropertyKey` (string, number, or symbol).
840
895
  *
841
- * When to use:
896
+ * **When to use**
897
+ *
842
898
  * - You need to guard unknown keys before indexing.
843
899
  *
844
- * Behavior:
900
+ * **Details**
901
+ *
845
902
  * - Pure; does not mutate input.
846
903
  * - Uses {@link isString}, {@link isNumber}, and {@link isSymbol}.
847
904
  *
@@ -858,8 +915,9 @@ export function isSymbol(input: unknown): input is symbol {
858
915
  * }
859
916
  * ```
860
917
  *
861
- * See also: {@link isString}, {@link isNumber}, {@link isSymbol}
862
- *
918
+ * @see {@link isString}
919
+ * @see {@link isNumber}
920
+ * @see {@link isSymbol}
863
921
  * @category guards
864
922
  * @since 4.0.0
865
923
  */
@@ -870,10 +928,12 @@ export function isPropertyKey(u: unknown): u is PropertyKey {
870
928
  /**
871
929
  * Checks whether a value is a `function`.
872
930
  *
873
- * When to use:
931
+ * **When to use**
932
+ *
874
933
  * - You need to guard an `unknown` value as callable.
875
934
  *
876
- * Behavior:
935
+ * **Details**
936
+ *
877
937
  * - Pure; does not mutate input.
878
938
  * - Uses `typeof input === "function"`.
879
939
  *
@@ -889,8 +949,7 @@ export function isPropertyKey(u: unknown): u is PropertyKey {
889
949
  * }
890
950
  * ```
891
951
  *
892
- * See also: {@link isObjectKeyword}
893
- *
952
+ * @see {@link isObjectKeyword}
894
953
  * @category guards
895
954
  * @since 2.0.0
896
955
  */
@@ -901,10 +960,12 @@ export function isFunction(input: unknown): input is Function {
901
960
  /**
902
961
  * Checks whether a value is `undefined`.
903
962
  *
904
- * When to use:
963
+ * **When to use**
964
+ *
905
965
  * - You need a guard for optional values.
906
966
  *
907
- * Behavior:
967
+ * **Details**
968
+ *
908
969
  * - Pure; does not mutate input.
909
970
  * - Uses `input === undefined`.
910
971
  *
@@ -918,8 +979,8 @@ export function isFunction(input: unknown): input is Function {
918
979
  * console.log(Predicate.isUndefined(data))
919
980
  * ```
920
981
  *
921
- * See also: {@link isNotUndefined}, {@link isNullish}
922
- *
982
+ * @see {@link isNotUndefined}
983
+ * @see {@link isNullish}
923
984
  * @category guards
924
985
  * @since 2.0.0
925
986
  */
@@ -930,10 +991,12 @@ export function isUndefined(input: unknown): input is undefined {
930
991
  /**
931
992
  * Checks whether a value is not `undefined`.
932
993
  *
933
- * When to use:
994
+ * **When to use**
995
+ *
934
996
  * - You want to filter out `undefined` while preserving other falsy values.
935
997
  *
936
- * Behavior:
998
+ * **Details**
999
+ *
937
1000
  * - Pure; does not mutate input.
938
1001
  * - Returns a refinement that excludes `undefined`.
939
1002
  *
@@ -948,8 +1011,8 @@ export function isUndefined(input: unknown): input is undefined {
948
1011
  * console.log(defined)
949
1012
  * ```
950
1013
  *
951
- * See also: {@link isUndefined}, {@link isNotNullish}
952
- *
1014
+ * @see {@link isUndefined}
1015
+ * @see {@link isNotNullish}
953
1016
  * @category guards
954
1017
  * @since 2.0.0
955
1018
  */
@@ -960,10 +1023,12 @@ export function isNotUndefined<A>(input: A): input is Exclude<A, undefined> {
960
1023
  /**
961
1024
  * Checks whether a value is `null`.
962
1025
  *
963
- * When to use:
1026
+ * **When to use**
1027
+ *
964
1028
  * - You need a guard for nullable values.
965
1029
  *
966
- * Behavior:
1030
+ * **Details**
1031
+ *
967
1032
  * - Pure; does not mutate input.
968
1033
  * - Uses `input === null`.
969
1034
  *
@@ -977,8 +1042,8 @@ export function isNotUndefined<A>(input: A): input is Exclude<A, undefined> {
977
1042
  * console.log(Predicate.isNull(data))
978
1043
  * ```
979
1044
  *
980
- * See also: {@link isNotNull}, {@link isNullish}
981
- *
1045
+ * @see {@link isNotNull}
1046
+ * @see {@link isNullish}
982
1047
  * @category guards
983
1048
  * @since 2.0.0
984
1049
  */
@@ -989,10 +1054,12 @@ export function isNull(input: unknown): input is null {
989
1054
  /**
990
1055
  * Checks whether a value is not `null`.
991
1056
  *
992
- * When to use:
1057
+ * **When to use**
1058
+ *
993
1059
  * - You want to filter out `null` while preserving other falsy values.
994
1060
  *
995
- * Behavior:
1061
+ * **Details**
1062
+ *
996
1063
  * - Pure; does not mutate input.
997
1064
  * - Returns a refinement that excludes `null`.
998
1065
  *
@@ -1007,8 +1074,8 @@ export function isNull(input: unknown): input is null {
1007
1074
  * console.log(nonNull)
1008
1075
  * ```
1009
1076
  *
1010
- * See also: {@link isNull}, {@link isNotNullish}
1011
- *
1077
+ * @see {@link isNull}
1078
+ * @see {@link isNotNullish}
1012
1079
  * @category guards
1013
1080
  * @since 2.0.0
1014
1081
  */
@@ -1019,10 +1086,12 @@ export function isNotNull<A>(input: A): input is Exclude<A, null> {
1019
1086
  /**
1020
1087
  * Checks whether a value is `null` or `undefined`.
1021
1088
  *
1022
- * When to use:
1089
+ * **When to use**
1090
+ *
1023
1091
  * - You want to guard nullish values explicitly.
1024
1092
  *
1025
- * Behavior:
1093
+ * **Details**
1094
+ *
1026
1095
  * - Pure; does not mutate input.
1027
1096
  * - Uses `input === null || input === undefined`.
1028
1097
  *
@@ -1037,8 +1106,9 @@ export function isNotNull<A>(input: A): input is Exclude<A, null> {
1037
1106
  * console.log(nullish)
1038
1107
  * ```
1039
1108
  *
1040
- * See also: {@link isNotNullish}, {@link isUndefined}, {@link isNull}
1041
- *
1109
+ * @see {@link isNotNullish}
1110
+ * @see {@link isUndefined}
1111
+ * @see {@link isNull}
1042
1112
  * @category guards
1043
1113
  * @since 4.0.0
1044
1114
  */
@@ -1049,10 +1119,12 @@ export function isNullish<A>(input: A): input is A & (null | undefined) {
1049
1119
  /**
1050
1120
  * Checks whether a value is not `null` and not `undefined`.
1051
1121
  *
1052
- * When to use:
1122
+ * **When to use**
1123
+ *
1053
1124
  * - You want to filter out nullish values but keep other falsy ones.
1054
1125
  *
1055
- * Behavior:
1126
+ * **Details**
1127
+ *
1056
1128
  * - Pure; does not mutate input.
1057
1129
  * - Uses `input != null`.
1058
1130
  *
@@ -1067,8 +1139,9 @@ export function isNullish<A>(input: A): input is A & (null | undefined) {
1067
1139
  * console.log(present)
1068
1140
  * ```
1069
1141
  *
1070
- * See also: {@link isNullish}, {@link isNotNull}, {@link isNotUndefined}
1071
- *
1142
+ * @see {@link isNullish}
1143
+ * @see {@link isNotNull}
1144
+ * @see {@link isNotUndefined}
1072
1145
  * @category guards
1073
1146
  * @since 4.0.0
1074
1147
  */
@@ -1079,10 +1152,12 @@ export function isNotNullish<A>(input: A): input is NonNullable<A> {
1079
1152
  /**
1080
1153
  * A guard that always returns `false`.
1081
1154
  *
1082
- * When to use:
1155
+ * **When to use**
1156
+ *
1083
1157
  * - You need a predicate that never accepts, e.g. in default branches.
1084
1158
  *
1085
- * Behavior:
1159
+ * **Details**
1160
+ *
1086
1161
  * - Pure; does not mutate input.
1087
1162
  * - Always returns `false`.
1088
1163
  *
@@ -1094,8 +1169,7 @@ export function isNotNullish<A>(input: A): input is NonNullable<A> {
1094
1169
  * console.log(Predicate.isNever("anything"))
1095
1170
  * ```
1096
1171
  *
1097
- * See also: {@link isUnknown}
1098
- *
1172
+ * @see {@link isUnknown}
1099
1173
  * @category guards
1100
1174
  * @since 2.0.0
1101
1175
  */
@@ -1106,10 +1180,12 @@ export function isNever(_: unknown): _ is never {
1106
1180
  /**
1107
1181
  * A guard that always returns `true`.
1108
1182
  *
1109
- * When to use:
1183
+ * **When to use**
1184
+ *
1110
1185
  * - You need a predicate that always accepts, e.g. as a placeholder.
1111
1186
  *
1112
- * Behavior:
1187
+ * **Details**
1188
+ *
1113
1189
  * - Pure; does not mutate input.
1114
1190
  * - Always returns `true`.
1115
1191
  *
@@ -1121,8 +1197,7 @@ export function isNever(_: unknown): _ is never {
1121
1197
  * console.log(Predicate.isUnknown(123))
1122
1198
  * ```
1123
1199
  *
1124
- * See also: {@link isNever}
1125
- *
1200
+ * @see {@link isNever}
1126
1201
  * @category guards
1127
1202
  * @since 2.0.0
1128
1203
  */
@@ -1133,10 +1208,12 @@ export function isUnknown(_: unknown): _ is unknown {
1133
1208
  /**
1134
1209
  * Checks whether a value is an object or an array (non-null object).
1135
1210
  *
1136
- * When to use:
1211
+ * **When to use**
1212
+ *
1137
1213
  * - You want to accept plain objects and arrays, but not `null`.
1138
1214
  *
1139
- * Behavior:
1215
+ * **Details**
1216
+ *
1140
1217
  * - Pure; does not mutate input.
1141
1218
  * - Uses `typeof input === "object" && input !== null`.
1142
1219
  * - Includes arrays.
@@ -1149,8 +1226,8 @@ export function isUnknown(_: unknown): _ is unknown {
1149
1226
  * console.log(Predicate.isObjectOrArray([]))
1150
1227
  * ```
1151
1228
  *
1152
- * See also: {@link isObject}, {@link isObjectKeyword}
1153
- *
1229
+ * @see {@link isObject}
1230
+ * @see {@link isObjectKeyword}
1154
1231
  * @category guards
1155
1232
  * @since 4.0.0
1156
1233
  */
@@ -1161,6 +1238,8 @@ export function isObjectOrArray(input: unknown): input is { [x: PropertyKey]: un
1161
1238
  /**
1162
1239
  * Checks whether a value is a non-null object value that is not an array.
1163
1240
  *
1241
+ * **Details**
1242
+ *
1164
1243
  * This is a structural runtime check using `typeof input === "object"`, so it
1165
1244
  * also accepts object instances such as `Date`, `Map`, class instances, and
1166
1245
  * typed arrays. It excludes `null` and arrays.
@@ -1174,8 +1253,8 @@ export function isObjectOrArray(input: unknown): input is { [x: PropertyKey]: un
1174
1253
  * console.log(Predicate.isObject([1, 2]))
1175
1254
  * ```
1176
1255
  *
1177
- * See also: {@link isObjectOrArray}, {@link isReadonlyObject}
1178
- *
1256
+ * @see {@link isObjectOrArray}
1257
+ * @see {@link isReadonlyObject}
1179
1258
  * @category guards
1180
1259
  * @since 2.0.0
1181
1260
  */
@@ -1187,6 +1266,8 @@ export function isObject(input: unknown): input is { [x: PropertyKey]: unknown }
1187
1266
  * Checks whether a value is a non-null, non-array object and narrows it to a
1188
1267
  * readonly indexable object type.
1189
1268
  *
1269
+ * **Details**
1270
+ *
1190
1271
  * Readonly-ness is a TypeScript type-level view; it is not observable at
1191
1272
  * runtime. This delegates to `isObject`, so class instances and built-in object
1192
1273
  * instances are accepted.
@@ -1201,8 +1282,7 @@ export function isObject(input: unknown): input is { [x: PropertyKey]: unknown }
1201
1282
  * console.log(Predicate.isReadonlyObject(data))
1202
1283
  * ```
1203
1284
  *
1204
- * See also: {@link isObject}
1205
- *
1285
+ * @see {@link isObject}
1206
1286
  * @category guards
1207
1287
  * @since 4.0.0
1208
1288
  */
@@ -1213,10 +1293,12 @@ export function isReadonlyObject(input: unknown): input is { readonly [x: Proper
1213
1293
  /**
1214
1294
  * Checks whether a value is an `object` in the JavaScript sense (objects, arrays, functions).
1215
1295
  *
1216
- * When to use:
1296
+ * **When to use**
1297
+ *
1217
1298
  * - You want to accept arrays and functions as well as objects.
1218
1299
  *
1219
- * Behavior:
1300
+ * **Details**
1301
+ *
1220
1302
  * - Pure; does not mutate input.
1221
1303
  * - Returns `true` for arrays and functions, `false` for `null`.
1222
1304
  *
@@ -1229,8 +1311,8 @@ export function isReadonlyObject(input: unknown): input is { readonly [x: Proper
1229
1311
  * console.log(Predicate.isObjectKeyword(null))
1230
1312
  * ```
1231
1313
  *
1232
- * See also: {@link isObject}, {@link isObjectOrArray}
1233
- *
1314
+ * @see {@link isObject}
1315
+ * @see {@link isObjectOrArray}
1234
1316
  * @category guards
1235
1317
  * @since 4.0.0
1236
1318
  */
@@ -1241,11 +1323,13 @@ export function isObjectKeyword(input: unknown): input is object {
1241
1323
  /**
1242
1324
  * Checks whether a value has a given property key.
1243
1325
  *
1244
- * When to use:
1326
+ * **When to use**
1327
+ *
1245
1328
  * - You need to guard property access on `unknown` values.
1246
1329
  * - You want a simple structural guard for objects.
1247
1330
  *
1248
- * Behavior:
1331
+ * **Details**
1332
+ *
1249
1333
  * - Pure; does not mutate input.
1250
1334
  * - Uses the `in` operator and {@link isObjectKeyword}.
1251
1335
  * - Does not check property value types.
@@ -1263,8 +1347,8 @@ export function isObjectKeyword(input: unknown): input is object {
1263
1347
  * }
1264
1348
  * ```
1265
1349
  *
1266
- * See also: {@link isTagged}, {@link isObjectKeyword}
1267
- *
1350
+ * @see {@link isTagged}
1351
+ * @see {@link isObjectKeyword}
1268
1352
  * @category guards
1269
1353
  * @since 2.0.0
1270
1354
  */
@@ -1272,11 +1356,13 @@ export const hasProperty: {
1272
1356
  /**
1273
1357
  * Checks whether a value has a given property key.
1274
1358
  *
1275
- * When to use:
1359
+ * **When to use**
1360
+ *
1276
1361
  * - You need to guard property access on `unknown` values.
1277
1362
  * - You want a simple structural guard for objects.
1278
1363
  *
1279
- * Behavior:
1364
+ * **Details**
1365
+ *
1280
1366
  * - Pure; does not mutate input.
1281
1367
  * - Uses the `in` operator and {@link isObjectKeyword}.
1282
1368
  * - Does not check property value types.
@@ -1294,8 +1380,8 @@ export const hasProperty: {
1294
1380
  * }
1295
1381
  * ```
1296
1382
  *
1297
- * See also: {@link isTagged}, {@link isObjectKeyword}
1298
- *
1383
+ * @see {@link isTagged}
1384
+ * @see {@link isObjectKeyword}
1299
1385
  * @category guards
1300
1386
  * @since 2.0.0
1301
1387
  */
@@ -1303,11 +1389,13 @@ export const hasProperty: {
1303
1389
  /**
1304
1390
  * Checks whether a value has a given property key.
1305
1391
  *
1306
- * When to use:
1392
+ * **When to use**
1393
+ *
1307
1394
  * - You need to guard property access on `unknown` values.
1308
1395
  * - You want a simple structural guard for objects.
1309
1396
  *
1310
- * Behavior:
1397
+ * **Details**
1398
+ *
1311
1399
  * - Pure; does not mutate input.
1312
1400
  * - Uses the `in` operator and {@link isObjectKeyword}.
1313
1401
  * - Does not check property value types.
@@ -1325,8 +1413,8 @@ export const hasProperty: {
1325
1413
  * }
1326
1414
  * ```
1327
1415
  *
1328
- * See also: {@link isTagged}, {@link isObjectKeyword}
1329
- *
1416
+ * @see {@link isTagged}
1417
+ * @see {@link isObjectKeyword}
1330
1418
  * @category guards
1331
1419
  * @since 2.0.0
1332
1420
  */
@@ -1340,11 +1428,13 @@ export const hasProperty: {
1340
1428
  /**
1341
1429
  * Checks whether a value has a `_tag` property equal to the given tag.
1342
1430
  *
1343
- * When to use:
1431
+ * **When to use**
1432
+ *
1344
1433
  * - You model tagged unions with a `_tag` field.
1345
1434
  * - You want a quick, structural guard for tagged values.
1346
1435
  *
1347
- * Behavior:
1436
+ * **Details**
1437
+ *
1348
1438
  * - Pure; does not mutate input.
1349
1439
  * - Uses {@link hasProperty} and strict equality on `_tag`.
1350
1440
  *
@@ -1358,8 +1448,7 @@ export const hasProperty: {
1358
1448
  * console.log(isOk({ _tag: "Ok", value: 1 }))
1359
1449
  * ```
1360
1450
  *
1361
- * See also: {@link hasProperty}
1362
- *
1451
+ * @see {@link hasProperty}
1363
1452
  * @category guards
1364
1453
  * @since 2.0.0
1365
1454
  */
@@ -1367,11 +1456,13 @@ export const isTagged: {
1367
1456
  /**
1368
1457
  * Checks whether a value has a `_tag` property equal to the given tag.
1369
1458
  *
1370
- * When to use:
1459
+ * **When to use**
1460
+ *
1371
1461
  * - You model tagged unions with a `_tag` field.
1372
1462
  * - You want a quick, structural guard for tagged values.
1373
1463
  *
1374
- * Behavior:
1464
+ * **Details**
1465
+ *
1375
1466
  * - Pure; does not mutate input.
1376
1467
  * - Uses {@link hasProperty} and strict equality on `_tag`.
1377
1468
  *
@@ -1385,8 +1476,7 @@ export const isTagged: {
1385
1476
  * console.log(isOk({ _tag: "Ok", value: 1 }))
1386
1477
  * ```
1387
1478
  *
1388
- * See also: {@link hasProperty}
1389
- *
1479
+ * @see {@link hasProperty}
1390
1480
  * @category guards
1391
1481
  * @since 2.0.0
1392
1482
  */
@@ -1394,11 +1484,13 @@ export const isTagged: {
1394
1484
  /**
1395
1485
  * Checks whether a value has a `_tag` property equal to the given tag.
1396
1486
  *
1397
- * When to use:
1487
+ * **When to use**
1488
+ *
1398
1489
  * - You model tagged unions with a `_tag` field.
1399
1490
  * - You want a quick, structural guard for tagged values.
1400
1491
  *
1401
- * Behavior:
1492
+ * **Details**
1493
+ *
1402
1494
  * - Pure; does not mutate input.
1403
1495
  * - Uses {@link hasProperty} and strict equality on `_tag`.
1404
1496
  *
@@ -1412,8 +1504,7 @@ export const isTagged: {
1412
1504
  * console.log(isOk({ _tag: "Ok", value: 1 }))
1413
1505
  * ```
1414
1506
  *
1415
- * See also: {@link hasProperty}
1416
- *
1507
+ * @see {@link hasProperty}
1417
1508
  * @category guards
1418
1509
  * @since 2.0.0
1419
1510
  */
@@ -1426,10 +1517,12 @@ export const isTagged: {
1426
1517
  /**
1427
1518
  * Checks whether a value is an `Error`.
1428
1519
  *
1429
- * When to use:
1520
+ * **When to use**
1521
+ *
1430
1522
  * - You need to guard errors caught from unknown sources.
1431
1523
  *
1432
- * Behavior:
1524
+ * **Details**
1525
+ *
1433
1526
  * - Pure; does not mutate input.
1434
1527
  * - Uses `instanceof Error`.
1435
1528
  *
@@ -1443,8 +1536,7 @@ export const isTagged: {
1443
1536
  * console.log(Predicate.isError(data))
1444
1537
  * ```
1445
1538
  *
1446
- * See also: {@link isUnknown}
1447
- *
1539
+ * @see {@link isUnknown}
1448
1540
  * @category guards
1449
1541
  * @since 2.0.0
1450
1542
  */
@@ -1455,10 +1547,12 @@ export function isError(input: unknown): input is Error {
1455
1547
  /**
1456
1548
  * Checks whether a value is a `Uint8Array`.
1457
1549
  *
1458
- * When to use:
1550
+ * **When to use**
1551
+ *
1459
1552
  * - You need to guard binary data at runtime.
1460
1553
  *
1461
- * Behavior:
1554
+ * **Details**
1555
+ *
1462
1556
  * - Pure; does not mutate input.
1463
1557
  * - Uses `instanceof Uint8Array`.
1464
1558
  *
@@ -1472,8 +1566,8 @@ export function isError(input: unknown): input is Error {
1472
1566
  * console.log(Predicate.isUint8Array(data))
1473
1567
  * ```
1474
1568
  *
1475
- * See also: {@link isIterable}, {@link isSet}
1476
- *
1569
+ * @see {@link isIterable}
1570
+ * @see {@link isSet}
1477
1571
  * @category guards
1478
1572
  * @since 2.0.0
1479
1573
  */
@@ -1484,10 +1578,12 @@ export function isUint8Array(input: unknown): input is Uint8Array {
1484
1578
  /**
1485
1579
  * Checks whether a value is a `Date`.
1486
1580
  *
1487
- * When to use:
1581
+ * **When to use**
1582
+ *
1488
1583
  * - You need to guard dates at runtime.
1489
1584
  *
1490
- * Behavior:
1585
+ * **Details**
1586
+ *
1491
1587
  * - Pure; does not mutate input.
1492
1588
  * - Uses `instanceof Date`.
1493
1589
  *
@@ -1501,8 +1597,7 @@ export function isUint8Array(input: unknown): input is Uint8Array {
1501
1597
  * console.log(Predicate.isDate(data))
1502
1598
  * ```
1503
1599
  *
1504
- * See also: {@link isRegExp}
1505
- *
1600
+ * @see {@link isRegExp}
1506
1601
  * @category guards
1507
1602
  * @since 2.0.0
1508
1603
  */
@@ -1513,10 +1608,12 @@ export function isDate(input: unknown): input is Date {
1513
1608
  /**
1514
1609
  * Checks whether a value is iterable.
1515
1610
  *
1516
- * When to use:
1611
+ * **When to use**
1612
+ *
1517
1613
  * - You need a guard before iterating an unknown value.
1518
1614
  *
1519
- * Behavior:
1615
+ * **Details**
1616
+ *
1520
1617
  * - Pure; does not mutate input.
1521
1618
  * - Accepts strings as iterable.
1522
1619
  * - Uses {@link hasProperty} for `Symbol.iterator`.
@@ -1531,8 +1628,8 @@ export function isDate(input: unknown): input is Date {
1531
1628
  * console.log(Predicate.isIterable(data))
1532
1629
  * ```
1533
1630
  *
1534
- * See also: {@link isSet}, {@link isMap}
1535
- *
1631
+ * @see {@link isSet}
1632
+ * @see {@link isMap}
1536
1633
  * @category guards
1537
1634
  * @since 2.0.0
1538
1635
  */
@@ -1543,10 +1640,12 @@ export function isIterable(input: unknown): input is Iterable<unknown> {
1543
1640
  /**
1544
1641
  * Checks whether a value is a `Promise`-like object with `then` and `catch`.
1545
1642
  *
1546
- * When to use:
1643
+ * **When to use**
1644
+ *
1547
1645
  * - You need to detect promise instances across realms.
1548
1646
  *
1549
- * Behavior:
1647
+ * **Details**
1648
+ *
1550
1649
  * - Pure; does not mutate input.
1551
1650
  * - Structural check for `then` and `catch` functions.
1552
1651
  *
@@ -1560,8 +1659,7 @@ export function isIterable(input: unknown): input is Iterable<unknown> {
1560
1659
  * console.log(Predicate.isPromise(data))
1561
1660
  * ```
1562
1661
  *
1563
- * See also: {@link isPromiseLike}
1564
- *
1662
+ * @see {@link isPromiseLike}
1565
1663
  * @category guards
1566
1664
  * @since 2.0.0
1567
1665
  */
@@ -1572,10 +1670,12 @@ export function isPromise(input: unknown): input is Promise<unknown> {
1572
1670
  /**
1573
1671
  * Checks whether a value is `PromiseLike` (has a `then` method).
1574
1672
  *
1575
- * When to use:
1673
+ * **When to use**
1674
+ *
1576
1675
  * - You only need `then` to interop with promise-like values.
1577
1676
  *
1578
- * Behavior:
1677
+ * **Details**
1678
+ *
1579
1679
  * - Pure; does not mutate input.
1580
1680
  * - Structural check for a callable `then`.
1581
1681
  *
@@ -1589,8 +1689,7 @@ export function isPromise(input: unknown): input is Promise<unknown> {
1589
1689
  * console.log(Predicate.isPromiseLike(data))
1590
1690
  * ```
1591
1691
  *
1592
- * See also: {@link isPromise}
1593
- *
1692
+ * @see {@link isPromise}
1594
1693
  * @category guards
1595
1694
  * @since 2.0.0
1596
1695
  */
@@ -1601,10 +1700,12 @@ export function isPromiseLike(input: unknown): input is PromiseLike<unknown> {
1601
1700
  /**
1602
1701
  * Checks whether a value is a `RegExp`.
1603
1702
  *
1604
- * When to use:
1703
+ * **When to use**
1704
+ *
1605
1705
  * - You need a runtime guard for regular expressions.
1606
1706
  *
1607
- * Behavior:
1707
+ * **Details**
1708
+ *
1608
1709
  * - Pure; does not mutate input.
1609
1710
  * - Uses `instanceof RegExp`.
1610
1711
  *
@@ -1618,8 +1719,7 @@ export function isPromiseLike(input: unknown): input is PromiseLike<unknown> {
1618
1719
  * console.log(Predicate.isRegExp(data))
1619
1720
  * ```
1620
1721
  *
1621
- * See also: {@link isDate}
1622
- *
1722
+ * @see {@link isDate}
1623
1723
  * @category guards
1624
1724
  * @since 3.9.0
1625
1725
  */
@@ -1630,11 +1730,13 @@ export function isRegExp(input: unknown): input is RegExp {
1630
1730
  /**
1631
1731
  * Composes two predicates or refinements into one.
1632
1732
  *
1633
- * When to use:
1733
+ * **When to use**
1734
+ *
1634
1735
  * - You want to chain two refinements for progressive narrowing.
1635
1736
  * - You want a predicate that applies two checks in sequence.
1636
1737
  *
1637
- * Behavior:
1738
+ * **Details**
1739
+ *
1638
1740
  * - Pure; does not mutate input.
1639
1741
  * - For refinements, the output type is narrowed by both.
1640
1742
  * - Short-circuits on the first `false`.
@@ -1652,8 +1754,8 @@ export function isRegExp(input: unknown): input is RegExp {
1652
1754
  * console.log(isIntegerNumber(1))
1653
1755
  * ```
1654
1756
  *
1655
- * See also: {@link and}, {@link Refinement}
1656
- *
1757
+ * @see {@link and}
1758
+ * @see {@link Refinement}
1657
1759
  * @category combinators
1658
1760
  * @since 2.0.0
1659
1761
  */
@@ -1661,11 +1763,13 @@ export const compose: {
1661
1763
  /**
1662
1764
  * Composes two predicates or refinements into one.
1663
1765
  *
1664
- * When to use:
1766
+ * **When to use**
1767
+ *
1665
1768
  * - You want to chain two refinements for progressive narrowing.
1666
1769
  * - You want a predicate that applies two checks in sequence.
1667
1770
  *
1668
- * Behavior:
1771
+ * **Details**
1772
+ *
1669
1773
  * - Pure; does not mutate input.
1670
1774
  * - For refinements, the output type is narrowed by both.
1671
1775
  * - Short-circuits on the first `false`.
@@ -1683,8 +1787,8 @@ export const compose: {
1683
1787
  * console.log(isIntegerNumber(1))
1684
1788
  * ```
1685
1789
  *
1686
- * See also: {@link and}, {@link Refinement}
1687
- *
1790
+ * @see {@link and}
1791
+ * @see {@link Refinement}
1688
1792
  * @category combinators
1689
1793
  * @since 2.0.0
1690
1794
  */
@@ -1692,11 +1796,13 @@ export const compose: {
1692
1796
  /**
1693
1797
  * Composes two predicates or refinements into one.
1694
1798
  *
1695
- * When to use:
1799
+ * **When to use**
1800
+ *
1696
1801
  * - You want to chain two refinements for progressive narrowing.
1697
1802
  * - You want a predicate that applies two checks in sequence.
1698
1803
  *
1699
- * Behavior:
1804
+ * **Details**
1805
+ *
1700
1806
  * - Pure; does not mutate input.
1701
1807
  * - For refinements, the output type is narrowed by both.
1702
1808
  * - Short-circuits on the first `false`.
@@ -1714,8 +1820,8 @@ export const compose: {
1714
1820
  * console.log(isIntegerNumber(1))
1715
1821
  * ```
1716
1822
  *
1717
- * See also: {@link and}, {@link Refinement}
1718
- *
1823
+ * @see {@link and}
1824
+ * @see {@link Refinement}
1719
1825
  * @category combinators
1720
1826
  * @since 2.0.0
1721
1827
  */
@@ -1723,11 +1829,13 @@ export const compose: {
1723
1829
  /**
1724
1830
  * Composes two predicates or refinements into one.
1725
1831
  *
1726
- * When to use:
1832
+ * **When to use**
1833
+ *
1727
1834
  * - You want to chain two refinements for progressive narrowing.
1728
1835
  * - You want a predicate that applies two checks in sequence.
1729
1836
  *
1730
- * Behavior:
1837
+ * **Details**
1838
+ *
1731
1839
  * - Pure; does not mutate input.
1732
1840
  * - For refinements, the output type is narrowed by both.
1733
1841
  * - Short-circuits on the first `false`.
@@ -1745,8 +1853,8 @@ export const compose: {
1745
1853
  * console.log(isIntegerNumber(1))
1746
1854
  * ```
1747
1855
  *
1748
- * See also: {@link and}, {@link Refinement}
1749
- *
1856
+ * @see {@link and}
1857
+ * @see {@link Refinement}
1750
1858
  * @category combinators
1751
1859
  * @since 2.0.0
1752
1860
  */
@@ -1754,11 +1862,13 @@ export const compose: {
1754
1862
  /**
1755
1863
  * Composes two predicates or refinements into one.
1756
1864
  *
1757
- * When to use:
1865
+ * **When to use**
1866
+ *
1758
1867
  * - You want to chain two refinements for progressive narrowing.
1759
1868
  * - You want a predicate that applies two checks in sequence.
1760
1869
  *
1761
- * Behavior:
1870
+ * **Details**
1871
+ *
1762
1872
  * - Pure; does not mutate input.
1763
1873
  * - For refinements, the output type is narrowed by both.
1764
1874
  * - Short-circuits on the first `false`.
@@ -1776,8 +1886,8 @@ export const compose: {
1776
1886
  * console.log(isIntegerNumber(1))
1777
1887
  * ```
1778
1888
  *
1779
- * See also: {@link and}, {@link Refinement}
1780
- *
1889
+ * @see {@link and}
1890
+ * @see {@link Refinement}
1781
1891
  * @category combinators
1782
1892
  * @since 2.0.0
1783
1893
  */
@@ -1791,11 +1901,13 @@ export const compose: {
1791
1901
  /**
1792
1902
  * Creates a predicate for tuples by applying predicates to each element.
1793
1903
  *
1794
- * When to use:
1904
+ * **When to use**
1905
+ *
1795
1906
  * - You want to validate tuple positions independently.
1796
1907
  * - You want to lift element predicates into a tuple predicate.
1797
1908
  *
1798
- * Behavior:
1909
+ * **Details**
1910
+ *
1799
1911
  * - Pure; does not mutate input.
1800
1912
  * - Returns a refinement if any element predicate is a refinement.
1801
1913
  * - Stops at the first failing element.
@@ -1810,8 +1922,8 @@ export const compose: {
1810
1922
  * console.log(tupleCheck([1, "ok"]))
1811
1923
  * ```
1812
1924
  *
1813
- * See also: {@link Struct}, {@link isTupleOf}
1814
- *
1925
+ * @see {@link Struct}
1926
+ * @see {@link isTupleOf}
1815
1927
  * @category combinators
1816
1928
  * @since 4.0.0
1817
1929
  */
@@ -1836,11 +1948,13 @@ export function Tuple<const T extends ReadonlyArray<Predicate.Any>>(
1836
1948
  /**
1837
1949
  * Creates a predicate for objects by applying predicates to named properties.
1838
1950
  *
1839
- * When to use:
1951
+ * **When to use**
1952
+ *
1840
1953
  * - You want to validate a record shape at runtime.
1841
1954
  * - You want to lift property predicates into an object predicate.
1842
1955
  *
1843
- * Behavior:
1956
+ * **Details**
1957
+ *
1844
1958
  * - Pure; does not mutate input.
1845
1959
  * - Returns a refinement if any field predicate is a refinement.
1846
1960
  * - Checks only the specified keys; extra keys are ignored.
@@ -1858,8 +1972,8 @@ export function Tuple<const T extends ReadonlyArray<Predicate.Any>>(
1858
1972
  * console.log(userCheck({ id: 1, name: "Ada" }))
1859
1973
  * ```
1860
1974
  *
1861
- * See also: {@link Tuple}, {@link hasProperty}
1862
- *
1975
+ * @see {@link Tuple}
1976
+ * @see {@link hasProperty}
1863
1977
  * @category combinators
1864
1978
  * @since 4.0.0
1865
1979
  */
@@ -1885,10 +1999,12 @@ export function Struct<R extends Record<string, Predicate.Any>>(
1885
1999
  /**
1886
2000
  * Negates a predicate.
1887
2001
  *
1888
- * When to use:
2002
+ * **When to use**
2003
+ *
1889
2004
  * - You want the inverse of an existing predicate.
1890
2005
  *
1891
- * Behavior:
2006
+ * **Details**
2007
+ *
1892
2008
  * - Pure; does not mutate input.
1893
2009
  * - Returns a new predicate that flips the boolean result.
1894
2010
  *
@@ -1902,8 +2018,9 @@ export function Struct<R extends Record<string, Predicate.Any>>(
1902
2018
  * console.log(isNotString(1))
1903
2019
  * ```
1904
2020
  *
1905
- * See also: {@link and}, {@link or}, {@link xor}
1906
- *
2021
+ * @see {@link and}
2022
+ * @see {@link or}
2023
+ * @see {@link xor}
1907
2024
  * @category combinators
1908
2025
  * @since 2.0.0
1909
2026
  */
@@ -1914,11 +2031,13 @@ export function not<A>(self: Predicate<A>): Predicate<A> {
1914
2031
  /**
1915
2032
  * Creates a predicate that returns `true` if either predicate is `true`.
1916
2033
  *
1917
- * When to use:
2034
+ * **When to use**
2035
+ *
1918
2036
  * - You want to accept values that satisfy at least one condition.
1919
2037
  * - You want to combine refinements with union narrowing.
1920
2038
  *
1921
- * Behavior:
2039
+ * **Details**
2040
+ *
1922
2041
  * - Pure; does not mutate input.
1923
2042
  * - Short-circuits on the first `true`.
1924
2043
  * - For refinements, the output type is a union.
@@ -1933,8 +2052,8 @@ export function not<A>(self: Predicate<A>): Predicate<A> {
1933
2052
  * console.log(isStringOrNumber("a"))
1934
2053
  * ```
1935
2054
  *
1936
- * See also: {@link and}, {@link xor}
1937
- *
2055
+ * @see {@link and}
2056
+ * @see {@link xor}
1938
2057
  * @category combinators
1939
2058
  * @since 2.0.0
1940
2059
  */
@@ -1942,11 +2061,13 @@ export const or: {
1942
2061
  /**
1943
2062
  * Creates a predicate that returns `true` if either predicate is `true`.
1944
2063
  *
1945
- * When to use:
2064
+ * **When to use**
2065
+ *
1946
2066
  * - You want to accept values that satisfy at least one condition.
1947
2067
  * - You want to combine refinements with union narrowing.
1948
2068
  *
1949
- * Behavior:
2069
+ * **Details**
2070
+ *
1950
2071
  * - Pure; does not mutate input.
1951
2072
  * - Short-circuits on the first `true`.
1952
2073
  * - For refinements, the output type is a union.
@@ -1961,8 +2082,8 @@ export const or: {
1961
2082
  * console.log(isStringOrNumber("a"))
1962
2083
  * ```
1963
2084
  *
1964
- * See also: {@link and}, {@link xor}
1965
- *
2085
+ * @see {@link and}
2086
+ * @see {@link xor}
1966
2087
  * @category combinators
1967
2088
  * @since 2.0.0
1968
2089
  */
@@ -1970,11 +2091,13 @@ export const or: {
1970
2091
  /**
1971
2092
  * Creates a predicate that returns `true` if either predicate is `true`.
1972
2093
  *
1973
- * When to use:
2094
+ * **When to use**
2095
+ *
1974
2096
  * - You want to accept values that satisfy at least one condition.
1975
2097
  * - You want to combine refinements with union narrowing.
1976
2098
  *
1977
- * Behavior:
2099
+ * **Details**
2100
+ *
1978
2101
  * - Pure; does not mutate input.
1979
2102
  * - Short-circuits on the first `true`.
1980
2103
  * - For refinements, the output type is a union.
@@ -1989,8 +2112,8 @@ export const or: {
1989
2112
  * console.log(isStringOrNumber("a"))
1990
2113
  * ```
1991
2114
  *
1992
- * See also: {@link and}, {@link xor}
1993
- *
2115
+ * @see {@link and}
2116
+ * @see {@link xor}
1994
2117
  * @category combinators
1995
2118
  * @since 2.0.0
1996
2119
  */
@@ -1998,11 +2121,13 @@ export const or: {
1998
2121
  /**
1999
2122
  * Creates a predicate that returns `true` if either predicate is `true`.
2000
2123
  *
2001
- * When to use:
2124
+ * **When to use**
2125
+ *
2002
2126
  * - You want to accept values that satisfy at least one condition.
2003
2127
  * - You want to combine refinements with union narrowing.
2004
2128
  *
2005
- * Behavior:
2129
+ * **Details**
2130
+ *
2006
2131
  * - Pure; does not mutate input.
2007
2132
  * - Short-circuits on the first `true`.
2008
2133
  * - For refinements, the output type is a union.
@@ -2017,8 +2142,8 @@ export const or: {
2017
2142
  * console.log(isStringOrNumber("a"))
2018
2143
  * ```
2019
2144
  *
2020
- * See also: {@link and}, {@link xor}
2021
- *
2145
+ * @see {@link and}
2146
+ * @see {@link xor}
2022
2147
  * @category combinators
2023
2148
  * @since 2.0.0
2024
2149
  */
@@ -2026,11 +2151,13 @@ export const or: {
2026
2151
  /**
2027
2152
  * Creates a predicate that returns `true` if either predicate is `true`.
2028
2153
  *
2029
- * When to use:
2154
+ * **When to use**
2155
+ *
2030
2156
  * - You want to accept values that satisfy at least one condition.
2031
2157
  * - You want to combine refinements with union narrowing.
2032
2158
  *
2033
- * Behavior:
2159
+ * **Details**
2160
+ *
2034
2161
  * - Pure; does not mutate input.
2035
2162
  * - Short-circuits on the first `true`.
2036
2163
  * - For refinements, the output type is a union.
@@ -2045,8 +2172,8 @@ export const or: {
2045
2172
  * console.log(isStringOrNumber("a"))
2046
2173
  * ```
2047
2174
  *
2048
- * See also: {@link and}, {@link xor}
2049
- *
2175
+ * @see {@link and}
2176
+ * @see {@link xor}
2050
2177
  * @category combinators
2051
2178
  * @since 2.0.0
2052
2179
  */
@@ -2056,11 +2183,13 @@ export const or: {
2056
2183
  /**
2057
2184
  * Creates a predicate that returns `true` only if both predicates are `true`.
2058
2185
  *
2059
- * When to use:
2186
+ * **When to use**
2187
+ *
2060
2188
  * - You want to accept values that satisfy multiple conditions.
2061
2189
  * - You want to combine refinements with intersection narrowing.
2062
2190
  *
2063
- * Behavior:
2191
+ * **Details**
2192
+ *
2064
2193
  * - Pure; does not mutate input.
2065
2194
  * - Short-circuits on the first `false`.
2066
2195
  * - For refinements, the output type is an intersection.
@@ -2083,8 +2212,8 @@ export const or: {
2083
2212
  * }
2084
2213
  * ```
2085
2214
  *
2086
- * See also: {@link or}, {@link not}
2087
- *
2215
+ * @see {@link or}
2216
+ * @see {@link not}
2088
2217
  * @category combinators
2089
2218
  * @since 2.0.0
2090
2219
  */
@@ -2092,11 +2221,13 @@ export const and: {
2092
2221
  /**
2093
2222
  * Creates a predicate that returns `true` only if both predicates are `true`.
2094
2223
  *
2095
- * When to use:
2224
+ * **When to use**
2225
+ *
2096
2226
  * - You want to accept values that satisfy multiple conditions.
2097
2227
  * - You want to combine refinements with intersection narrowing.
2098
2228
  *
2099
- * Behavior:
2229
+ * **Details**
2230
+ *
2100
2231
  * - Pure; does not mutate input.
2101
2232
  * - Short-circuits on the first `false`.
2102
2233
  * - For refinements, the output type is an intersection.
@@ -2119,8 +2250,8 @@ export const and: {
2119
2250
  * }
2120
2251
  * ```
2121
2252
  *
2122
- * See also: {@link or}, {@link not}
2123
- *
2253
+ * @see {@link or}
2254
+ * @see {@link not}
2124
2255
  * @category combinators
2125
2256
  * @since 2.0.0
2126
2257
  */
@@ -2128,11 +2259,13 @@ export const and: {
2128
2259
  /**
2129
2260
  * Creates a predicate that returns `true` only if both predicates are `true`.
2130
2261
  *
2131
- * When to use:
2262
+ * **When to use**
2263
+ *
2132
2264
  * - You want to accept values that satisfy multiple conditions.
2133
2265
  * - You want to combine refinements with intersection narrowing.
2134
2266
  *
2135
- * Behavior:
2267
+ * **Details**
2268
+ *
2136
2269
  * - Pure; does not mutate input.
2137
2270
  * - Short-circuits on the first `false`.
2138
2271
  * - For refinements, the output type is an intersection.
@@ -2155,8 +2288,8 @@ export const and: {
2155
2288
  * }
2156
2289
  * ```
2157
2290
  *
2158
- * See also: {@link or}, {@link not}
2159
- *
2291
+ * @see {@link or}
2292
+ * @see {@link not}
2160
2293
  * @category combinators
2161
2294
  * @since 2.0.0
2162
2295
  */
@@ -2164,11 +2297,13 @@ export const and: {
2164
2297
  /**
2165
2298
  * Creates a predicate that returns `true` only if both predicates are `true`.
2166
2299
  *
2167
- * When to use:
2300
+ * **When to use**
2301
+ *
2168
2302
  * - You want to accept values that satisfy multiple conditions.
2169
2303
  * - You want to combine refinements with intersection narrowing.
2170
2304
  *
2171
- * Behavior:
2305
+ * **Details**
2306
+ *
2172
2307
  * - Pure; does not mutate input.
2173
2308
  * - Short-circuits on the first `false`.
2174
2309
  * - For refinements, the output type is an intersection.
@@ -2191,8 +2326,8 @@ export const and: {
2191
2326
  * }
2192
2327
  * ```
2193
2328
  *
2194
- * See also: {@link or}, {@link not}
2195
- *
2329
+ * @see {@link or}
2330
+ * @see {@link not}
2196
2331
  * @category combinators
2197
2332
  * @since 2.0.0
2198
2333
  */
@@ -2200,11 +2335,13 @@ export const and: {
2200
2335
  /**
2201
2336
  * Creates a predicate that returns `true` only if both predicates are `true`.
2202
2337
  *
2203
- * When to use:
2338
+ * **When to use**
2339
+ *
2204
2340
  * - You want to accept values that satisfy multiple conditions.
2205
2341
  * - You want to combine refinements with intersection narrowing.
2206
2342
  *
2207
- * Behavior:
2343
+ * **Details**
2344
+ *
2208
2345
  * - Pure; does not mutate input.
2209
2346
  * - Short-circuits on the first `false`.
2210
2347
  * - For refinements, the output type is an intersection.
@@ -2227,8 +2364,8 @@ export const and: {
2227
2364
  * }
2228
2365
  * ```
2229
2366
  *
2230
- * See also: {@link or}, {@link not}
2231
- *
2367
+ * @see {@link or}
2368
+ * @see {@link not}
2232
2369
  * @category combinators
2233
2370
  * @since 2.0.0
2234
2371
  */
@@ -2238,10 +2375,12 @@ export const and: {
2238
2375
  /**
2239
2376
  * Creates a predicate that returns `true` if exactly one predicate is `true`.
2240
2377
  *
2241
- * When to use:
2378
+ * **When to use**
2379
+ *
2242
2380
  * - You want an exclusive-or between two conditions.
2243
2381
  *
2244
- * Behavior:
2382
+ * **Details**
2383
+ *
2245
2384
  * - Pure; does not mutate input.
2246
2385
  * - Returns `true` when results differ.
2247
2386
  *
@@ -2257,8 +2396,8 @@ export const and: {
2257
2396
  * console.log(either(-2))
2258
2397
  * ```
2259
2398
  *
2260
- * See also: {@link or}, {@link and}
2261
- *
2399
+ * @see {@link or}
2400
+ * @see {@link and}
2262
2401
  * @category combinators
2263
2402
  * @since 2.0.0
2264
2403
  */
@@ -2266,10 +2405,12 @@ export const xor: {
2266
2405
  /**
2267
2406
  * Creates a predicate that returns `true` if exactly one predicate is `true`.
2268
2407
  *
2269
- * When to use:
2408
+ * **When to use**
2409
+ *
2270
2410
  * - You want an exclusive-or between two conditions.
2271
2411
  *
2272
- * Behavior:
2412
+ * **Details**
2413
+ *
2273
2414
  * - Pure; does not mutate input.
2274
2415
  * - Returns `true` when results differ.
2275
2416
  *
@@ -2285,8 +2426,8 @@ export const xor: {
2285
2426
  * console.log(either(-2))
2286
2427
  * ```
2287
2428
  *
2288
- * See also: {@link or}, {@link and}
2289
- *
2429
+ * @see {@link or}
2430
+ * @see {@link and}
2290
2431
  * @category combinators
2291
2432
  * @since 2.0.0
2292
2433
  */
@@ -2294,10 +2435,12 @@ export const xor: {
2294
2435
  /**
2295
2436
  * Creates a predicate that returns `true` if exactly one predicate is `true`.
2296
2437
  *
2297
- * When to use:
2438
+ * **When to use**
2439
+ *
2298
2440
  * - You want an exclusive-or between two conditions.
2299
2441
  *
2300
- * Behavior:
2442
+ * **Details**
2443
+ *
2301
2444
  * - Pure; does not mutate input.
2302
2445
  * - Returns `true` when results differ.
2303
2446
  *
@@ -2313,8 +2456,8 @@ export const xor: {
2313
2456
  * console.log(either(-2))
2314
2457
  * ```
2315
2458
  *
2316
- * See also: {@link or}, {@link and}
2317
- *
2459
+ * @see {@link or}
2460
+ * @see {@link and}
2318
2461
  * @category combinators
2319
2462
  * @since 2.0.0
2320
2463
  */
@@ -2324,10 +2467,12 @@ export const xor: {
2324
2467
  /**
2325
2468
  * Creates a predicate that returns `true` when both predicates agree.
2326
2469
  *
2327
- * When to use:
2470
+ * **When to use**
2471
+ *
2328
2472
  * - You want to check equivalence of two predicates.
2329
2473
  *
2330
- * Behavior:
2474
+ * **Details**
2475
+ *
2331
2476
  * - Pure; does not mutate input.
2332
2477
  * - Returns `true` when both results are equal.
2333
2478
  *
@@ -2342,8 +2487,7 @@ export const xor: {
2342
2487
  * console.log(same(3))
2343
2488
  * ```
2344
2489
  *
2345
- * See also: {@link xor}
2346
- *
2490
+ * @see {@link xor}
2347
2491
  * @category combinators
2348
2492
  * @since 2.0.0
2349
2493
  */
@@ -2351,10 +2495,12 @@ export const eqv: {
2351
2495
  /**
2352
2496
  * Creates a predicate that returns `true` when both predicates agree.
2353
2497
  *
2354
- * When to use:
2498
+ * **When to use**
2499
+ *
2355
2500
  * - You want to check equivalence of two predicates.
2356
2501
  *
2357
- * Behavior:
2502
+ * **Details**
2503
+ *
2358
2504
  * - Pure; does not mutate input.
2359
2505
  * - Returns `true` when both results are equal.
2360
2506
  *
@@ -2369,8 +2515,7 @@ export const eqv: {
2369
2515
  * console.log(same(3))
2370
2516
  * ```
2371
2517
  *
2372
- * See also: {@link xor}
2373
- *
2518
+ * @see {@link xor}
2374
2519
  * @category combinators
2375
2520
  * @since 2.0.0
2376
2521
  */
@@ -2378,10 +2523,12 @@ export const eqv: {
2378
2523
  /**
2379
2524
  * Creates a predicate that returns `true` when both predicates agree.
2380
2525
  *
2381
- * When to use:
2526
+ * **When to use**
2527
+ *
2382
2528
  * - You want to check equivalence of two predicates.
2383
2529
  *
2384
- * Behavior:
2530
+ * **Details**
2531
+ *
2385
2532
  * - Pure; does not mutate input.
2386
2533
  * - Returns `true` when both results are equal.
2387
2534
  *
@@ -2396,8 +2543,7 @@ export const eqv: {
2396
2543
  * console.log(same(3))
2397
2544
  * ```
2398
2545
  *
2399
- * See also: {@link xor}
2400
- *
2546
+ * @see {@link xor}
2401
2547
  * @category combinators
2402
2548
  * @since 2.0.0
2403
2549
  */
@@ -2407,11 +2553,13 @@ export const eqv: {
2407
2553
  /**
2408
2554
  * Creates a predicate representing logical implication: if `antecedent`, then `consequent`.
2409
2555
  *
2410
- * When to use:
2556
+ * **When to use**
2557
+ *
2411
2558
  * - You want a rule that only applies when a precondition holds.
2412
2559
  * - You model constraints like "if A then B".
2413
2560
  *
2414
- * Behavior:
2561
+ * **Details**
2562
+ *
2415
2563
  * - Pure; does not mutate input.
2416
2564
  * - Returns `true` when the antecedent is `false`.
2417
2565
  *
@@ -2427,8 +2575,8 @@ export const eqv: {
2427
2575
  * console.log(implies(16))
2428
2576
  * ```
2429
2577
  *
2430
- * See also: {@link and}, {@link or}
2431
- *
2578
+ * @see {@link and}
2579
+ * @see {@link or}
2432
2580
  * @category combinators
2433
2581
  * @since 2.0.0
2434
2582
  */
@@ -2436,11 +2584,13 @@ export const implies: {
2436
2584
  /**
2437
2585
  * Creates a predicate representing logical implication: if `antecedent`, then `consequent`.
2438
2586
  *
2439
- * When to use:
2587
+ * **When to use**
2588
+ *
2440
2589
  * - You want a rule that only applies when a precondition holds.
2441
2590
  * - You model constraints like "if A then B".
2442
2591
  *
2443
- * Behavior:
2592
+ * **Details**
2593
+ *
2444
2594
  * - Pure; does not mutate input.
2445
2595
  * - Returns `true` when the antecedent is `false`.
2446
2596
  *
@@ -2456,8 +2606,8 @@ export const implies: {
2456
2606
  * console.log(implies(16))
2457
2607
  * ```
2458
2608
  *
2459
- * See also: {@link and}, {@link or}
2460
- *
2609
+ * @see {@link and}
2610
+ * @see {@link or}
2461
2611
  * @category combinators
2462
2612
  * @since 2.0.0
2463
2613
  */
@@ -2465,11 +2615,13 @@ export const implies: {
2465
2615
  /**
2466
2616
  * Creates a predicate representing logical implication: if `antecedent`, then `consequent`.
2467
2617
  *
2468
- * When to use:
2618
+ * **When to use**
2619
+ *
2469
2620
  * - You want a rule that only applies when a precondition holds.
2470
2621
  * - You model constraints like "if A then B".
2471
2622
  *
2472
- * Behavior:
2623
+ * **Details**
2624
+ *
2473
2625
  * - Pure; does not mutate input.
2474
2626
  * - Returns `true` when the antecedent is `false`.
2475
2627
  *
@@ -2485,8 +2637,8 @@ export const implies: {
2485
2637
  * console.log(implies(16))
2486
2638
  * ```
2487
2639
  *
2488
- * See also: {@link and}, {@link or}
2489
- *
2640
+ * @see {@link and}
2641
+ * @see {@link or}
2490
2642
  * @category combinators
2491
2643
  * @since 2.0.0
2492
2644
  */
@@ -2499,10 +2651,12 @@ export const implies: {
2499
2651
  /**
2500
2652
  * Creates a predicate that returns `true` when neither predicate is `true`.
2501
2653
  *
2502
- * When to use:
2654
+ * **When to use**
2655
+ *
2503
2656
  * - You want the logical NOR of two conditions.
2504
2657
  *
2505
- * Behavior:
2658
+ * **Details**
2659
+ *
2506
2660
  * - Pure; does not mutate input.
2507
2661
  * - Returns the negation of {@link or}.
2508
2662
  *
@@ -2516,8 +2670,8 @@ export const implies: {
2516
2670
  * console.log(neither(true))
2517
2671
  * ```
2518
2672
  *
2519
- * See also: {@link or}, {@link not}
2520
- *
2673
+ * @see {@link or}
2674
+ * @see {@link not}
2521
2675
  * @category combinators
2522
2676
  * @since 2.0.0
2523
2677
  */
@@ -2525,10 +2679,12 @@ export const nor: {
2525
2679
  /**
2526
2680
  * Creates a predicate that returns `true` when neither predicate is `true`.
2527
2681
  *
2528
- * When to use:
2682
+ * **When to use**
2683
+ *
2529
2684
  * - You want the logical NOR of two conditions.
2530
2685
  *
2531
- * Behavior:
2686
+ * **Details**
2687
+ *
2532
2688
  * - Pure; does not mutate input.
2533
2689
  * - Returns the negation of {@link or}.
2534
2690
  *
@@ -2542,8 +2698,8 @@ export const nor: {
2542
2698
  * console.log(neither(true))
2543
2699
  * ```
2544
2700
  *
2545
- * See also: {@link or}, {@link not}
2546
- *
2701
+ * @see {@link or}
2702
+ * @see {@link not}
2547
2703
  * @category combinators
2548
2704
  * @since 2.0.0
2549
2705
  */
@@ -2551,10 +2707,12 @@ export const nor: {
2551
2707
  /**
2552
2708
  * Creates a predicate that returns `true` when neither predicate is `true`.
2553
2709
  *
2554
- * When to use:
2710
+ * **When to use**
2711
+ *
2555
2712
  * - You want the logical NOR of two conditions.
2556
2713
  *
2557
- * Behavior:
2714
+ * **Details**
2715
+ *
2558
2716
  * - Pure; does not mutate input.
2559
2717
  * - Returns the negation of {@link or}.
2560
2718
  *
@@ -2568,8 +2726,8 @@ export const nor: {
2568
2726
  * console.log(neither(true))
2569
2727
  * ```
2570
2728
  *
2571
- * See also: {@link or}, {@link not}
2572
- *
2729
+ * @see {@link or}
2730
+ * @see {@link not}
2573
2731
  * @category combinators
2574
2732
  * @since 2.0.0
2575
2733
  */
@@ -2582,10 +2740,12 @@ export const nor: {
2582
2740
  /**
2583
2741
  * Creates a predicate that returns `true` unless both predicates are `true`.
2584
2742
  *
2585
- * When to use:
2743
+ * **When to use**
2744
+ *
2586
2745
  * - You want the logical NAND of two conditions.
2587
2746
  *
2588
- * Behavior:
2747
+ * **Details**
2748
+ *
2589
2749
  * - Pure; does not mutate input.
2590
2750
  * - Returns the negation of {@link and}.
2591
2751
  *
@@ -2599,8 +2759,8 @@ export const nor: {
2599
2759
  * console.log(notBoth("a"))
2600
2760
  * ```
2601
2761
  *
2602
- * See also: {@link and}, {@link not}
2603
- *
2762
+ * @see {@link and}
2763
+ * @see {@link not}
2604
2764
  * @category combinators
2605
2765
  * @since 2.0.0
2606
2766
  */
@@ -2608,10 +2768,12 @@ export const nand: {
2608
2768
  /**
2609
2769
  * Creates a predicate that returns `true` unless both predicates are `true`.
2610
2770
  *
2611
- * When to use:
2771
+ * **When to use**
2772
+ *
2612
2773
  * - You want the logical NAND of two conditions.
2613
2774
  *
2614
- * Behavior:
2775
+ * **Details**
2776
+ *
2615
2777
  * - Pure; does not mutate input.
2616
2778
  * - Returns the negation of {@link and}.
2617
2779
  *
@@ -2625,8 +2787,8 @@ export const nand: {
2625
2787
  * console.log(notBoth("a"))
2626
2788
  * ```
2627
2789
  *
2628
- * See also: {@link and}, {@link not}
2629
- *
2790
+ * @see {@link and}
2791
+ * @see {@link not}
2630
2792
  * @category combinators
2631
2793
  * @since 2.0.0
2632
2794
  */
@@ -2634,10 +2796,12 @@ export const nand: {
2634
2796
  /**
2635
2797
  * Creates a predicate that returns `true` unless both predicates are `true`.
2636
2798
  *
2637
- * When to use:
2799
+ * **When to use**
2800
+ *
2638
2801
  * - You want the logical NAND of two conditions.
2639
2802
  *
2640
- * Behavior:
2803
+ * **Details**
2804
+ *
2641
2805
  * - Pure; does not mutate input.
2642
2806
  * - Returns the negation of {@link and}.
2643
2807
  *
@@ -2651,8 +2815,8 @@ export const nand: {
2651
2815
  * console.log(notBoth("a"))
2652
2816
  * ```
2653
2817
  *
2654
- * See also: {@link and}, {@link not}
2655
- *
2818
+ * @see {@link and}
2819
+ * @see {@link not}
2656
2820
  * @category combinators
2657
2821
  * @since 2.0.0
2658
2822
  */
@@ -2665,10 +2829,12 @@ export const nand: {
2665
2829
  /**
2666
2830
  * Creates a predicate that returns `true` if all predicates in the collection return `true`.
2667
2831
  *
2668
- * When to use:
2832
+ * **When to use**
2833
+ *
2669
2834
  * - You have a dynamic list of predicates to apply.
2670
2835
  *
2671
- * Behavior:
2836
+ * **Details**
2837
+ *
2672
2838
  * - Pure; does not mutate input.
2673
2839
  * - Short-circuits on the first `false`.
2674
2840
  * - Iterates the collection each time the predicate is called.
@@ -2683,8 +2849,8 @@ export const nand: {
2683
2849
  * console.log(allChecks(2))
2684
2850
  * ```
2685
2851
  *
2686
- * See also: {@link some}, {@link and}
2687
- *
2852
+ * @see {@link some}
2853
+ * @see {@link and}
2688
2854
  * @category elements
2689
2855
  * @since 2.0.0
2690
2856
  */
@@ -2702,10 +2868,12 @@ export function every<A>(collection: Iterable<Predicate<A>>): Predicate<A> {
2702
2868
  /**
2703
2869
  * Creates a predicate that returns `true` if any predicate in the collection returns `true`.
2704
2870
  *
2705
- * When to use:
2871
+ * **When to use**
2872
+ *
2706
2873
  * - You have a dynamic list of predicates and only need one to pass.
2707
2874
  *
2708
- * Behavior:
2875
+ * **Details**
2876
+ *
2709
2877
  * - Pure; does not mutate input.
2710
2878
  * - Short-circuits on the first `true`.
2711
2879
  * - Iterates the collection each time the predicate is called.
@@ -2720,8 +2888,8 @@ export function every<A>(collection: Iterable<Predicate<A>>): Predicate<A> {
2720
2888
  * console.log(anyCheck("ok"))
2721
2889
  * ```
2722
2890
  *
2723
- * See also: {@link every}, {@link or}
2724
- *
2891
+ * @see {@link every}
2892
+ * @see {@link or}
2725
2893
  * @category elements
2726
2894
  * @since 2.0.0
2727
2895
  */