effect 3.13.8 → 3.13.9

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 (333) hide show
  1. package/dist/cjs/Array.js +460 -431
  2. package/dist/cjs/Array.js.map +1 -1
  3. package/dist/cjs/BigDecimal.js +31 -89
  4. package/dist/cjs/BigDecimal.js.map +1 -1
  5. package/dist/cjs/BigInt.js +27 -71
  6. package/dist/cjs/BigInt.js.map +1 -1
  7. package/dist/cjs/Boolean.js +12 -10
  8. package/dist/cjs/Boolean.js.map +1 -1
  9. package/dist/cjs/Brand.js +2 -0
  10. package/dist/cjs/Brand.js.map +1 -1
  11. package/dist/cjs/Channel.js +0 -2
  12. package/dist/cjs/Channel.js.map +1 -1
  13. package/dist/cjs/Chunk.js +4 -0
  14. package/dist/cjs/Chunk.js.map +1 -1
  15. package/dist/cjs/Config.js +0 -5
  16. package/dist/cjs/Config.js.map +1 -1
  17. package/dist/cjs/Context.js +14 -24
  18. package/dist/cjs/Context.js.map +1 -1
  19. package/dist/cjs/Cron.js +11 -25
  20. package/dist/cjs/Cron.js.map +1 -1
  21. package/dist/cjs/Data.js +6 -0
  22. package/dist/cjs/Data.js.map +1 -1
  23. package/dist/cjs/DateTime.js +2 -0
  24. package/dist/cjs/DateTime.js.map +1 -1
  25. package/dist/cjs/Duration.js +2 -2
  26. package/dist/cjs/Effect.js +122 -53
  27. package/dist/cjs/Effect.js.map +1 -1
  28. package/dist/cjs/Either.js +21 -25
  29. package/dist/cjs/Either.js.map +1 -1
  30. package/dist/cjs/Encoding.js +1 -1
  31. package/dist/cjs/Equivalence.js +1 -1
  32. package/dist/cjs/Function.js +21 -24
  33. package/dist/cjs/Function.js.map +1 -1
  34. package/dist/cjs/HashMap.js +0 -3
  35. package/dist/cjs/HashMap.js.map +1 -1
  36. package/dist/cjs/Iterable.js +9 -2
  37. package/dist/cjs/Iterable.js.map +1 -1
  38. package/dist/cjs/List.js +2 -0
  39. package/dist/cjs/List.js.map +1 -1
  40. package/dist/cjs/Logger.js +0 -2
  41. package/dist/cjs/Logger.js.map +1 -1
  42. package/dist/cjs/Mailbox.js +1 -0
  43. package/dist/cjs/Mailbox.js.map +1 -1
  44. package/dist/cjs/ManagedRuntime.js +0 -2
  45. package/dist/cjs/ManagedRuntime.js.map +1 -1
  46. package/dist/cjs/Metric.js +6 -12
  47. package/dist/cjs/Metric.js.map +1 -1
  48. package/dist/cjs/Number.js +22 -61
  49. package/dist/cjs/Number.js.map +1 -1
  50. package/dist/cjs/Option.js +5 -0
  51. package/dist/cjs/Option.js.map +1 -1
  52. package/dist/cjs/Order.js +1 -0
  53. package/dist/cjs/Order.js.map +1 -1
  54. package/dist/cjs/Ordering.js +2 -7
  55. package/dist/cjs/Ordering.js.map +1 -1
  56. package/dist/cjs/Pool.js +1 -1
  57. package/dist/cjs/Predicate.js +36 -77
  58. package/dist/cjs/Predicate.js.map +1 -1
  59. package/dist/cjs/Random.js +1 -2
  60. package/dist/cjs/Random.js.map +1 -1
  61. package/dist/cjs/RcMap.js +5 -2
  62. package/dist/cjs/RcMap.js.map +1 -1
  63. package/dist/cjs/Record.js +28 -107
  64. package/dist/cjs/Record.js.map +1 -1
  65. package/dist/cjs/Redacted.js +3 -0
  66. package/dist/cjs/Redacted.js.map +1 -1
  67. package/dist/cjs/RegExp.js +2 -2
  68. package/dist/cjs/RegExp.js.map +1 -1
  69. package/dist/cjs/STM.js +3 -5
  70. package/dist/cjs/STM.js.map +1 -1
  71. package/dist/cjs/Schedule.js +2 -2
  72. package/dist/cjs/Schema.js +14 -13
  73. package/dist/cjs/Schema.js.map +1 -1
  74. package/dist/cjs/SchemaAST.js +0 -2
  75. package/dist/cjs/SchemaAST.js.map +1 -1
  76. package/dist/cjs/Sink.js +14 -10
  77. package/dist/cjs/Sink.js.map +1 -1
  78. package/dist/cjs/Stream.js +24 -25
  79. package/dist/cjs/Stream.js.map +1 -1
  80. package/dist/cjs/String.js +31 -2
  81. package/dist/cjs/String.js.map +1 -1
  82. package/dist/cjs/Struct.js +6 -0
  83. package/dist/cjs/Struct.js.map +1 -1
  84. package/dist/cjs/Symbol.js +1 -2
  85. package/dist/cjs/Symbol.js.map +1 -1
  86. package/dist/cjs/TestClock.js.map +1 -1
  87. package/dist/cjs/Trie.js +28 -0
  88. package/dist/cjs/Trie.js.map +1 -1
  89. package/dist/cjs/Tuple.js +9 -24
  90. package/dist/cjs/Tuple.js.map +1 -1
  91. package/dist/cjs/internal/matcher.js +1 -1
  92. package/dist/cjs/internal/matcher.js.map +1 -1
  93. package/dist/cjs/internal/version.js +1 -1
  94. package/dist/dts/Array.d.ts +1235 -1188
  95. package/dist/dts/Array.d.ts.map +1 -1
  96. package/dist/dts/BigDecimal.d.ts +61 -189
  97. package/dist/dts/BigDecimal.d.ts.map +1 -1
  98. package/dist/dts/BigInt.d.ts +57 -165
  99. package/dist/dts/BigInt.d.ts.map +1 -1
  100. package/dist/dts/Boolean.d.ts +28 -18
  101. package/dist/dts/Boolean.d.ts.map +1 -1
  102. package/dist/dts/Brand.d.ts +3 -3
  103. package/dist/dts/Brand.d.ts.map +1 -1
  104. package/dist/dts/Channel.d.ts +0 -6
  105. package/dist/dts/Channel.d.ts.map +1 -1
  106. package/dist/dts/Chunk.d.ts +15 -0
  107. package/dist/dts/Chunk.d.ts.map +1 -1
  108. package/dist/dts/Config.d.ts +0 -5
  109. package/dist/dts/Config.d.ts.map +1 -1
  110. package/dist/dts/Context.d.ts +26 -54
  111. package/dist/dts/Context.d.ts.map +1 -1
  112. package/dist/dts/Cron.d.ts +9 -23
  113. package/dist/dts/Cron.d.ts.map +1 -1
  114. package/dist/dts/Data.d.ts +8 -0
  115. package/dist/dts/Data.d.ts.map +1 -1
  116. package/dist/dts/DateTime.d.ts +6 -0
  117. package/dist/dts/DateTime.d.ts.map +1 -1
  118. package/dist/dts/Duration.d.ts +2 -2
  119. package/dist/dts/Effect.d.ts +153 -71
  120. package/dist/dts/Effect.d.ts.map +1 -1
  121. package/dist/dts/Either.d.ts +44 -57
  122. package/dist/dts/Either.d.ts.map +1 -1
  123. package/dist/dts/Encoding.d.ts +1 -1
  124. package/dist/dts/Equivalence.d.ts +1 -1
  125. package/dist/dts/Function.d.ts +55 -59
  126. package/dist/dts/Function.d.ts.map +1 -1
  127. package/dist/dts/HashMap.d.ts +0 -9
  128. package/dist/dts/HashMap.d.ts.map +1 -1
  129. package/dist/dts/Iterable.d.ts +13 -2
  130. package/dist/dts/Iterable.d.ts.map +1 -1
  131. package/dist/dts/List.d.ts +10 -0
  132. package/dist/dts/List.d.ts.map +1 -1
  133. package/dist/dts/Logger.d.ts +0 -6
  134. package/dist/dts/Logger.d.ts.map +1 -1
  135. package/dist/dts/Mailbox.d.ts +1 -0
  136. package/dist/dts/Mailbox.d.ts.map +1 -1
  137. package/dist/dts/ManagedRuntime.d.ts +0 -2
  138. package/dist/dts/ManagedRuntime.d.ts.map +1 -1
  139. package/dist/dts/Metric.d.ts +14 -20
  140. package/dist/dts/Metric.d.ts.map +1 -1
  141. package/dist/dts/Micro.d.ts +1 -1
  142. package/dist/dts/Number.d.ts +52 -155
  143. package/dist/dts/Number.d.ts.map +1 -1
  144. package/dist/dts/Option.d.ts +12 -0
  145. package/dist/dts/Option.d.ts.map +1 -1
  146. package/dist/dts/Order.d.ts +1 -0
  147. package/dist/dts/Order.d.ts.map +1 -1
  148. package/dist/dts/Ordering.d.ts +4 -17
  149. package/dist/dts/Ordering.d.ts.map +1 -1
  150. package/dist/dts/Pool.d.ts +1 -1
  151. package/dist/dts/Predicate.d.ts +56 -133
  152. package/dist/dts/Predicate.d.ts.map +1 -1
  153. package/dist/dts/Random.d.ts +1 -2
  154. package/dist/dts/Random.d.ts.map +1 -1
  155. package/dist/dts/RcMap.d.ts +15 -6
  156. package/dist/dts/RcMap.d.ts.map +1 -1
  157. package/dist/dts/Record.d.ts +68 -279
  158. package/dist/dts/Record.d.ts.map +1 -1
  159. package/dist/dts/Redacted.d.ts +3 -0
  160. package/dist/dts/Redacted.d.ts.map +1 -1
  161. package/dist/dts/RegExp.d.ts +2 -2
  162. package/dist/dts/RegExp.d.ts.map +1 -1
  163. package/dist/dts/STM.d.ts +5 -7
  164. package/dist/dts/STM.d.ts.map +1 -1
  165. package/dist/dts/Schedule.d.ts +7 -7
  166. package/dist/dts/Schema.d.ts +31 -25
  167. package/dist/dts/Schema.d.ts.map +1 -1
  168. package/dist/dts/SchemaAST.d.ts +0 -2
  169. package/dist/dts/SchemaAST.d.ts.map +1 -1
  170. package/dist/dts/Sink.d.ts +14 -10
  171. package/dist/dts/Sink.d.ts.map +1 -1
  172. package/dist/dts/Stream.d.ts +58 -62
  173. package/dist/dts/Stream.d.ts.map +1 -1
  174. package/dist/dts/String.d.ts +47 -2
  175. package/dist/dts/String.d.ts.map +1 -1
  176. package/dist/dts/Struct.d.ts +12 -0
  177. package/dist/dts/Struct.d.ts.map +1 -1
  178. package/dist/dts/Symbol.d.ts +1 -2
  179. package/dist/dts/Symbol.d.ts.map +1 -1
  180. package/dist/dts/TestClock.d.ts +2 -1
  181. package/dist/dts/TestClock.d.ts.map +1 -1
  182. package/dist/dts/Trie.d.ts +66 -0
  183. package/dist/dts/Trie.d.ts.map +1 -1
  184. package/dist/dts/Tuple.d.ts +21 -62
  185. package/dist/dts/Tuple.d.ts.map +1 -1
  186. package/dist/dts/Utils.d.ts +8 -8
  187. package/dist/esm/Array.js +474 -442
  188. package/dist/esm/Array.js.map +1 -1
  189. package/dist/esm/BigDecimal.js +31 -89
  190. package/dist/esm/BigDecimal.js.map +1 -1
  191. package/dist/esm/BigInt.js +27 -71
  192. package/dist/esm/BigInt.js.map +1 -1
  193. package/dist/esm/Boolean.js +12 -10
  194. package/dist/esm/Boolean.js.map +1 -1
  195. package/dist/esm/Brand.js +2 -0
  196. package/dist/esm/Brand.js.map +1 -1
  197. package/dist/esm/Channel.js +0 -2
  198. package/dist/esm/Channel.js.map +1 -1
  199. package/dist/esm/Chunk.js +4 -0
  200. package/dist/esm/Chunk.js.map +1 -1
  201. package/dist/esm/Config.js +0 -5
  202. package/dist/esm/Config.js.map +1 -1
  203. package/dist/esm/Context.js +14 -24
  204. package/dist/esm/Context.js.map +1 -1
  205. package/dist/esm/Cron.js +11 -25
  206. package/dist/esm/Cron.js.map +1 -1
  207. package/dist/esm/Data.js +7 -0
  208. package/dist/esm/Data.js.map +1 -1
  209. package/dist/esm/DateTime.js +2 -0
  210. package/dist/esm/DateTime.js.map +1 -1
  211. package/dist/esm/Duration.js +2 -2
  212. package/dist/esm/Effect.js +123 -53
  213. package/dist/esm/Effect.js.map +1 -1
  214. package/dist/esm/Either.js +22 -25
  215. package/dist/esm/Either.js.map +1 -1
  216. package/dist/esm/Encoding.js +1 -1
  217. package/dist/esm/Equivalence.js +1 -1
  218. package/dist/esm/Function.js +21 -24
  219. package/dist/esm/Function.js.map +1 -1
  220. package/dist/esm/HashMap.js +0 -3
  221. package/dist/esm/HashMap.js.map +1 -1
  222. package/dist/esm/Iterable.js +9 -2
  223. package/dist/esm/Iterable.js.map +1 -1
  224. package/dist/esm/List.js +2 -0
  225. package/dist/esm/List.js.map +1 -1
  226. package/dist/esm/Logger.js +0 -2
  227. package/dist/esm/Logger.js.map +1 -1
  228. package/dist/esm/Mailbox.js +1 -0
  229. package/dist/esm/Mailbox.js.map +1 -1
  230. package/dist/esm/ManagedRuntime.js +0 -2
  231. package/dist/esm/ManagedRuntime.js.map +1 -1
  232. package/dist/esm/Metric.js +6 -12
  233. package/dist/esm/Metric.js.map +1 -1
  234. package/dist/esm/Micro.js +1 -1
  235. package/dist/esm/Number.js +22 -61
  236. package/dist/esm/Number.js.map +1 -1
  237. package/dist/esm/Option.js +6 -0
  238. package/dist/esm/Option.js.map +1 -1
  239. package/dist/esm/Order.js +1 -0
  240. package/dist/esm/Order.js.map +1 -1
  241. package/dist/esm/Ordering.js +2 -7
  242. package/dist/esm/Ordering.js.map +1 -1
  243. package/dist/esm/Pool.js +1 -1
  244. package/dist/esm/Predicate.js +36 -77
  245. package/dist/esm/Predicate.js.map +1 -1
  246. package/dist/esm/Random.js +1 -2
  247. package/dist/esm/Random.js.map +1 -1
  248. package/dist/esm/RcMap.js +5 -2
  249. package/dist/esm/RcMap.js.map +1 -1
  250. package/dist/esm/Record.js +28 -107
  251. package/dist/esm/Record.js.map +1 -1
  252. package/dist/esm/Redacted.js +3 -0
  253. package/dist/esm/Redacted.js.map +1 -1
  254. package/dist/esm/RegExp.js +2 -2
  255. package/dist/esm/RegExp.js.map +1 -1
  256. package/dist/esm/STM.js +3 -5
  257. package/dist/esm/STM.js.map +1 -1
  258. package/dist/esm/Schedule.js +2 -2
  259. package/dist/esm/Schema.js +14 -13
  260. package/dist/esm/Schema.js.map +1 -1
  261. package/dist/esm/SchemaAST.js +0 -2
  262. package/dist/esm/SchemaAST.js.map +1 -1
  263. package/dist/esm/Sink.js +14 -10
  264. package/dist/esm/Sink.js.map +1 -1
  265. package/dist/esm/Stream.js +25 -25
  266. package/dist/esm/Stream.js.map +1 -1
  267. package/dist/esm/String.js +31 -2
  268. package/dist/esm/String.js.map +1 -1
  269. package/dist/esm/Struct.js +6 -0
  270. package/dist/esm/Struct.js.map +1 -1
  271. package/dist/esm/Symbol.js +1 -2
  272. package/dist/esm/Symbol.js.map +1 -1
  273. package/dist/esm/TestClock.js.map +1 -1
  274. package/dist/esm/Trie.js +28 -0
  275. package/dist/esm/Trie.js.map +1 -1
  276. package/dist/esm/Tuple.js +11 -30
  277. package/dist/esm/Tuple.js.map +1 -1
  278. package/dist/esm/internal/matcher.js +1 -1
  279. package/dist/esm/internal/matcher.js.map +1 -1
  280. package/dist/esm/internal/version.js +1 -1
  281. package/package.json +1 -1
  282. package/src/Array.ts +1235 -1188
  283. package/src/BigDecimal.ts +61 -189
  284. package/src/BigInt.ts +57 -165
  285. package/src/Boolean.ts +28 -18
  286. package/src/Brand.ts +3 -3
  287. package/src/Channel.ts +0 -6
  288. package/src/Chunk.ts +16 -0
  289. package/src/Config.ts +0 -5
  290. package/src/Context.ts +26 -54
  291. package/src/Cron.ts +11 -25
  292. package/src/Data.ts +8 -0
  293. package/src/DateTime.ts +6 -0
  294. package/src/Duration.ts +2 -2
  295. package/src/Effect.ts +153 -71
  296. package/src/Either.ts +45 -58
  297. package/src/Encoding.ts +1 -1
  298. package/src/Equivalence.ts +1 -1
  299. package/src/Function.ts +55 -59
  300. package/src/HashMap.ts +0 -9
  301. package/src/Iterable.ts +13 -2
  302. package/src/List.ts +12 -0
  303. package/src/Logger.ts +0 -6
  304. package/src/Mailbox.ts +1 -0
  305. package/src/ManagedRuntime.ts +0 -2
  306. package/src/Metric.ts +14 -20
  307. package/src/Micro.ts +1 -1
  308. package/src/Number.ts +52 -155
  309. package/src/Option.ts +12 -0
  310. package/src/Order.ts +1 -0
  311. package/src/Ordering.ts +4 -17
  312. package/src/Pool.ts +1 -1
  313. package/src/Predicate.ts +56 -133
  314. package/src/Random.ts +1 -2
  315. package/src/RcMap.ts +15 -6
  316. package/src/Record.ts +68 -279
  317. package/src/Redacted.ts +3 -0
  318. package/src/RegExp.ts +2 -2
  319. package/src/STM.ts +5 -7
  320. package/src/Schedule.ts +7 -7
  321. package/src/Schema.ts +31 -25
  322. package/src/SchemaAST.ts +0 -2
  323. package/src/Sink.ts +14 -10
  324. package/src/Stream.ts +56 -61
  325. package/src/String.ts +47 -2
  326. package/src/Struct.ts +12 -0
  327. package/src/Symbol.ts +1 -2
  328. package/src/TestClock.ts +2 -1
  329. package/src/Trie.ts +66 -0
  330. package/src/Tuple.ts +21 -62
  331. package/src/Utils.ts +8 -8
  332. package/src/internal/matcher.ts +1 -1
  333. package/src/internal/version.ts +1 -1
@@ -48,10 +48,9 @@ export declare const empty: <K extends string | symbol = never, V = never>() =>
48
48
  /**
49
49
  * Determine if a record is empty.
50
50
  *
51
- * @param self - record to test for emptiness.
52
- *
53
51
  * @example
54
52
  * ```ts
53
+ * import * as assert from "node:assert"
55
54
  * import { isEmptyRecord } from "effect/Record"
56
55
  *
57
56
  * assert.deepStrictEqual(isEmptyRecord({}), true);
@@ -65,10 +64,9 @@ export declare const isEmptyRecord: <K extends string, A>(self: Record<K, A>) =>
65
64
  /**
66
65
  * Determine if a record is empty.
67
66
  *
68
- * @param self - record to test for emptiness.
69
- *
70
67
  * @example
71
68
  * ```ts
69
+ * import * as assert from "node:assert"
72
70
  * import { isEmptyReadonlyRecord } from "effect/Record"
73
71
  *
74
72
  * assert.deepStrictEqual(isEmptyReadonlyRecord({}), true);
@@ -83,11 +81,9 @@ export declare const isEmptyReadonlyRecord: <K extends string, A>(self: Readonly
83
81
  * Takes an iterable and a projection function and returns a record.
84
82
  * The projection function maps each value of the iterable to a tuple of a key and a value, which is then added to the resulting record.
85
83
  *
86
- * @param self - An iterable of values to be mapped to a record.
87
- * @param f - A projection function that maps values of the iterable to a tuple of a key and a value.
88
- *
89
84
  * @example
90
85
  * ```ts
86
+ * import * as assert from "node:assert"
91
87
  * import { fromIterableWith } from "effect/Record"
92
88
  *
93
89
  * const input = [1, 2, 3, 4]
@@ -106,11 +102,9 @@ export declare const fromIterableWith: {
106
102
  * Takes an iterable and a projection function and returns a record.
107
103
  * The projection function maps each value of the iterable to a tuple of a key and a value, which is then added to the resulting record.
108
104
  *
109
- * @param self - An iterable of values to be mapped to a record.
110
- * @param f - A projection function that maps values of the iterable to a tuple of a key and a value.
111
- *
112
105
  * @example
113
106
  * ```ts
107
+ * import * as assert from "node:assert"
114
108
  * import { fromIterableWith } from "effect/Record"
115
109
  *
116
110
  * const input = [1, 2, 3, 4]
@@ -129,11 +123,9 @@ export declare const fromIterableWith: {
129
123
  * Takes an iterable and a projection function and returns a record.
130
124
  * The projection function maps each value of the iterable to a tuple of a key and a value, which is then added to the resulting record.
131
125
  *
132
- * @param self - An iterable of values to be mapped to a record.
133
- * @param f - A projection function that maps values of the iterable to a tuple of a key and a value.
134
- *
135
126
  * @example
136
127
  * ```ts
128
+ * import * as assert from "node:assert"
137
129
  * import { fromIterableWith } from "effect/Record"
138
130
  *
139
131
  * const input = [1, 2, 3, 4]
@@ -152,11 +144,9 @@ export declare const fromIterableWith: {
152
144
  /**
153
145
  * Creates a new record from an iterable, utilizing the provided function to determine the key for each element.
154
146
  *
155
- * @param items - An iterable containing elements.
156
- * @param f - A function that extracts the key for each element.
157
- *
158
147
  * @example
159
148
  * ```ts
149
+ * import * as assert from "node:assert"
160
150
  * import { fromIterableBy } from "effect/Record"
161
151
  *
162
152
  * const users = [
@@ -183,10 +173,9 @@ export declare const fromIterableBy: <A, K extends string | symbol>(items: Itera
183
173
  * If there are conflicting keys when using `fromEntries`, the last occurrence of the key/value pair will overwrite the
184
174
  * previous ones. So the resulting record will only have the value of the last occurrence of each key.
185
175
  *
186
- * @param self - The iterable of key-value pairs.
187
- *
188
176
  * @example
189
177
  * ```ts
178
+ * import * as assert from "node:assert"
190
179
  * import { fromEntries } from "effect/Record"
191
180
  *
192
181
  * const input: Array<[string, number]> = [["a", 1], ["b", 2]]
@@ -201,11 +190,9 @@ export declare const fromEntries: <Entry extends readonly [string | symbol, any]
201
190
  /**
202
191
  * Transforms the values of a record into an `Array` with a custom mapping function.
203
192
  *
204
- * @param self - The record to transform.
205
- * @param f - The custom mapping function to apply to each key/value of the record.
206
- *
207
193
  * @example
208
194
  * ```ts
195
+ * import * as assert from "node:assert"
209
196
  * import { collect } from "effect/Record"
210
197
  *
211
198
  * const x = { a: 1, b: 2, c: 3 }
@@ -219,11 +206,9 @@ export declare const collect: {
219
206
  /**
220
207
  * Transforms the values of a record into an `Array` with a custom mapping function.
221
208
  *
222
- * @param self - The record to transform.
223
- * @param f - The custom mapping function to apply to each key/value of the record.
224
- *
225
209
  * @example
226
210
  * ```ts
211
+ * import * as assert from "node:assert"
227
212
  * import { collect } from "effect/Record"
228
213
  *
229
214
  * const x = { a: 1, b: 2, c: 3 }
@@ -237,11 +222,9 @@ export declare const collect: {
237
222
  /**
238
223
  * Transforms the values of a record into an `Array` with a custom mapping function.
239
224
  *
240
- * @param self - The record to transform.
241
- * @param f - The custom mapping function to apply to each key/value of the record.
242
- *
243
225
  * @example
244
226
  * ```ts
227
+ * import * as assert from "node:assert"
245
228
  * import { collect } from "effect/Record"
246
229
  *
247
230
  * const x = { a: 1, b: 2, c: 3 }
@@ -256,10 +239,9 @@ export declare const collect: {
256
239
  /**
257
240
  * Takes a record and returns an array of tuples containing its keys and values.
258
241
  *
259
- * @param self - The record to transform.
260
- *
261
242
  * @example
262
243
  * ```ts
244
+ * import * as assert from "node:assert"
263
245
  * import { toEntries } from "effect/Record"
264
246
  *
265
247
  * const x = { a: 1, b: 2, c: 3 }
@@ -273,10 +255,9 @@ export declare const toEntries: <K extends string, A>(self: ReadonlyRecord<K, A>
273
255
  /**
274
256
  * Returns the number of key/value pairs in a record.
275
257
  *
276
- * @param self - A record to calculate the number of key/value pairs in.
277
- *
278
258
  * @example
279
259
  * ```ts
260
+ * import * as assert from "node:assert"
280
261
  * import { size } from "effect/Record";
281
262
  *
282
263
  * assert.deepStrictEqual(size({ a: "a", b: 1, c: true }), 3);
@@ -288,11 +269,9 @@ export declare const size: <K extends string, A>(self: ReadonlyRecord<K, A>) =>
288
269
  /**
289
270
  * Check if a given `key` exists in a record.
290
271
  *
291
- * @param self - the record to look in.
292
- * @param key - the key to look for in the record.
293
- *
294
272
  * @example
295
273
  * ```ts
274
+ * import * as assert from "node:assert"
296
275
  * import { empty, has } from "effect/Record"
297
276
  *
298
277
  * assert.deepStrictEqual(has({ a: 1, b: 2 }, "a"), true);
@@ -305,11 +284,9 @@ export declare const has: {
305
284
  /**
306
285
  * Check if a given `key` exists in a record.
307
286
  *
308
- * @param self - the record to look in.
309
- * @param key - the key to look for in the record.
310
- *
311
287
  * @example
312
288
  * ```ts
289
+ * import * as assert from "node:assert"
313
290
  * import { empty, has } from "effect/Record"
314
291
  *
315
292
  * assert.deepStrictEqual(has({ a: 1, b: 2 }, "a"), true);
@@ -322,11 +299,9 @@ export declare const has: {
322
299
  /**
323
300
  * Check if a given `key` exists in a record.
324
301
  *
325
- * @param self - the record to look in.
326
- * @param key - the key to look for in the record.
327
- *
328
302
  * @example
329
303
  * ```ts
304
+ * import * as assert from "node:assert"
330
305
  * import { empty, has } from "effect/Record"
331
306
  *
332
307
  * assert.deepStrictEqual(has({ a: 1, b: 2 }, "a"), true);
@@ -340,11 +315,9 @@ export declare const has: {
340
315
  /**
341
316
  * Retrieve a value at a particular key from a record, returning it wrapped in an `Option`.
342
317
  *
343
- * @param self - The record to retrieve value from.
344
- * @param key - Key to retrieve from record.
345
- *
346
318
  * @example
347
319
  * ```ts
320
+ * import * as assert from "node:assert"
348
321
  * import { Record as R, Option } from "effect"
349
322
  *
350
323
  * const person: Record<string, unknown> = { name: "John Doe", age: 35 }
@@ -359,11 +332,9 @@ export declare const get: {
359
332
  /**
360
333
  * Retrieve a value at a particular key from a record, returning it wrapped in an `Option`.
361
334
  *
362
- * @param self - The record to retrieve value from.
363
- * @param key - Key to retrieve from record.
364
- *
365
335
  * @example
366
336
  * ```ts
337
+ * import * as assert from "node:assert"
367
338
  * import { Record as R, Option } from "effect"
368
339
  *
369
340
  * const person: Record<string, unknown> = { name: "John Doe", age: 35 }
@@ -378,11 +349,9 @@ export declare const get: {
378
349
  /**
379
350
  * Retrieve a value at a particular key from a record, returning it wrapped in an `Option`.
380
351
  *
381
- * @param self - The record to retrieve value from.
382
- * @param key - Key to retrieve from record.
383
- *
384
352
  * @example
385
353
  * ```ts
354
+ * import * as assert from "node:assert"
386
355
  * import { Record as R, Option } from "effect"
387
356
  *
388
357
  * const person: Record<string, unknown> = { name: "John Doe", age: 35 }
@@ -399,12 +368,9 @@ export declare const get: {
399
368
  * Apply a function to the element at the specified key, creating a new record.
400
369
  * If the key does not exist, the record is returned unchanged.
401
370
  *
402
- * @param self - The record to be updated.
403
- * @param key - The key of the element to modify.
404
- * @param f - The function to apply to the element.
405
- *
406
371
  * @example
407
372
  * ```ts
373
+ * import * as assert from "node:assert"
408
374
  * import { Record as R } from "effect"
409
375
  *
410
376
  * const f = (x: number) => x * 2
@@ -426,12 +392,9 @@ export declare const modify: {
426
392
  * Apply a function to the element at the specified key, creating a new record.
427
393
  * If the key does not exist, the record is returned unchanged.
428
394
  *
429
- * @param self - The record to be updated.
430
- * @param key - The key of the element to modify.
431
- * @param f - The function to apply to the element.
432
- *
433
395
  * @example
434
396
  * ```ts
397
+ * import * as assert from "node:assert"
435
398
  * import { Record as R } from "effect"
436
399
  *
437
400
  * const f = (x: number) => x * 2
@@ -453,12 +416,9 @@ export declare const modify: {
453
416
  * Apply a function to the element at the specified key, creating a new record.
454
417
  * If the key does not exist, the record is returned unchanged.
455
418
  *
456
- * @param self - The record to be updated.
457
- * @param key - The key of the element to modify.
458
- * @param f - The function to apply to the element.
459
- *
460
419
  * @example
461
420
  * ```ts
421
+ * import * as assert from "node:assert"
462
422
  * import { Record as R } from "effect"
463
423
  *
464
424
  * const f = (x: number) => x * 2
@@ -481,12 +441,9 @@ export declare const modify: {
481
441
  * Apply a function to the element at the specified key, creating a new record,
482
442
  * or return `None` if the key doesn't exist.
483
443
  *
484
- * @param self - The record to be updated.
485
- * @param key - The key of the element to modify.
486
- * @param f - The function to apply to the element.
487
- *
488
444
  * @example
489
445
  * ```ts
446
+ * import * as assert from "node:assert"
490
447
  * import { Record as R, Option } from "effect"
491
448
  *
492
449
  * const f = (x: number) => x * 2
@@ -508,12 +465,9 @@ export declare const modifyOption: {
508
465
  * Apply a function to the element at the specified key, creating a new record,
509
466
  * or return `None` if the key doesn't exist.
510
467
  *
511
- * @param self - The record to be updated.
512
- * @param key - The key of the element to modify.
513
- * @param f - The function to apply to the element.
514
- *
515
468
  * @example
516
469
  * ```ts
470
+ * import * as assert from "node:assert"
517
471
  * import { Record as R, Option } from "effect"
518
472
  *
519
473
  * const f = (x: number) => x * 2
@@ -535,12 +489,9 @@ export declare const modifyOption: {
535
489
  * Apply a function to the element at the specified key, creating a new record,
536
490
  * or return `None` if the key doesn't exist.
537
491
  *
538
- * @param self - The record to be updated.
539
- * @param key - The key of the element to modify.
540
- * @param f - The function to apply to the element.
541
- *
542
492
  * @example
543
493
  * ```ts
494
+ * import * as assert from "node:assert"
544
495
  * import { Record as R, Option } from "effect"
545
496
  *
546
497
  * const f = (x: number) => x * 2
@@ -562,12 +513,9 @@ export declare const modifyOption: {
562
513
  /**
563
514
  * Replaces a value in the record with the new value passed as parameter.
564
515
  *
565
- * @param self - The record to be updated.
566
- * @param key - The key to search for in the record.
567
- * @param b - The new value to replace the existing value with.
568
- *
569
516
  * @example
570
517
  * ```ts
518
+ * import * as assert from "node:assert"
571
519
  * import { Record, Option } from "effect"
572
520
  *
573
521
  * assert.deepStrictEqual(
@@ -583,12 +531,9 @@ export declare const replaceOption: {
583
531
  /**
584
532
  * Replaces a value in the record with the new value passed as parameter.
585
533
  *
586
- * @param self - The record to be updated.
587
- * @param key - The key to search for in the record.
588
- * @param b - The new value to replace the existing value with.
589
- *
590
534
  * @example
591
535
  * ```ts
536
+ * import * as assert from "node:assert"
592
537
  * import { Record, Option } from "effect"
593
538
  *
594
539
  * assert.deepStrictEqual(
@@ -604,12 +549,9 @@ export declare const replaceOption: {
604
549
  /**
605
550
  * Replaces a value in the record with the new value passed as parameter.
606
551
  *
607
- * @param self - The record to be updated.
608
- * @param key - The key to search for in the record.
609
- * @param b - The new value to replace the existing value with.
610
- *
611
552
  * @example
612
553
  * ```ts
554
+ * import * as assert from "node:assert"
613
555
  * import { Record, Option } from "effect"
614
556
  *
615
557
  * assert.deepStrictEqual(
@@ -627,11 +569,9 @@ export declare const replaceOption: {
627
569
  * If the given key exists in the record, returns a new record with the key removed,
628
570
  * otherwise returns a copy of the original record.
629
571
  *
630
- * @param self - the record to remove the key from.
631
- * @param key - the key to remove from the record.
632
- *
633
572
  * @example
634
573
  * ```ts
574
+ * import * as assert from "node:assert"
635
575
  * import { remove } from "effect/Record"
636
576
  *
637
577
  * assert.deepStrictEqual(remove({ a: 1, b: 2 }, "a"), { b: 2 })
@@ -644,11 +584,9 @@ export declare const remove: {
644
584
  * If the given key exists in the record, returns a new record with the key removed,
645
585
  * otherwise returns a copy of the original record.
646
586
  *
647
- * @param self - the record to remove the key from.
648
- * @param key - the key to remove from the record.
649
- *
650
587
  * @example
651
588
  * ```ts
589
+ * import * as assert from "node:assert"
652
590
  * import { remove } from "effect/Record"
653
591
  *
654
592
  * assert.deepStrictEqual(remove({ a: 1, b: 2 }, "a"), { b: 2 })
@@ -661,11 +599,9 @@ export declare const remove: {
661
599
  * If the given key exists in the record, returns a new record with the key removed,
662
600
  * otherwise returns a copy of the original record.
663
601
  *
664
- * @param self - the record to remove the key from.
665
- * @param key - the key to remove from the record.
666
- *
667
602
  * @example
668
603
  * ```ts
604
+ * import * as assert from "node:assert"
669
605
  * import { remove } from "effect/Record"
670
606
  *
671
607
  * assert.deepStrictEqual(remove({ a: 1, b: 2 }, "a"), { b: 2 })
@@ -680,11 +616,9 @@ export declare const remove: {
680
616
  * of a tuple with the value and the record with the removed property.
681
617
  * If the key is not present, returns `O.none`.
682
618
  *
683
- * @param self - The input record.
684
- * @param key - The key of the property to retrieve.
685
- *
686
619
  * @example
687
620
  * ```ts
621
+ * import * as assert from "node:assert"
688
622
  * import { Record as R, Option } from "effect"
689
623
  *
690
624
  * assert.deepStrictEqual(R.pop({ a: 1, b: 2 }, "a"), Option.some([1, { b: 2 }]))
@@ -700,11 +634,9 @@ export declare const pop: {
700
634
  * of a tuple with the value and the record with the removed property.
701
635
  * If the key is not present, returns `O.none`.
702
636
  *
703
- * @param self - The input record.
704
- * @param key - The key of the property to retrieve.
705
- *
706
637
  * @example
707
638
  * ```ts
639
+ * import * as assert from "node:assert"
708
640
  * import { Record as R, Option } from "effect"
709
641
  *
710
642
  * assert.deepStrictEqual(R.pop({ a: 1, b: 2 }, "a"), Option.some([1, { b: 2 }]))
@@ -720,11 +652,9 @@ export declare const pop: {
720
652
  * of a tuple with the value and the record with the removed property.
721
653
  * If the key is not present, returns `O.none`.
722
654
  *
723
- * @param self - The input record.
724
- * @param key - The key of the property to retrieve.
725
- *
726
655
  * @example
727
656
  * ```ts
657
+ * import * as assert from "node:assert"
728
658
  * import { Record as R, Option } from "effect"
729
659
  *
730
660
  * assert.deepStrictEqual(R.pop({ a: 1, b: 2 }, "a"), Option.some([1, { b: 2 }]))
@@ -739,11 +669,9 @@ export declare const pop: {
739
669
  /**
740
670
  * Maps a record into another record by applying a transformation function to each of its values.
741
671
  *
742
- * @param self - The record to be mapped.
743
- * @param f - A transformation function that will be applied to each of the values in the record.
744
- *
745
672
  * @example
746
673
  * ```ts
674
+ * import * as assert from "node:assert"
747
675
  * import { map } from "effect/Record"
748
676
  *
749
677
  * const f = (n: number) => `-${n}`
@@ -762,11 +690,9 @@ export declare const map: {
762
690
  /**
763
691
  * Maps a record into another record by applying a transformation function to each of its values.
764
692
  *
765
- * @param self - The record to be mapped.
766
- * @param f - A transformation function that will be applied to each of the values in the record.
767
- *
768
693
  * @example
769
694
  * ```ts
695
+ * import * as assert from "node:assert"
770
696
  * import { map } from "effect/Record"
771
697
  *
772
698
  * const f = (n: number) => `-${n}`
@@ -785,11 +711,9 @@ export declare const map: {
785
711
  /**
786
712
  * Maps a record into another record by applying a transformation function to each of its values.
787
713
  *
788
- * @param self - The record to be mapped.
789
- * @param f - A transformation function that will be applied to each of the values in the record.
790
- *
791
714
  * @example
792
715
  * ```ts
716
+ * import * as assert from "node:assert"
793
717
  * import { map } from "effect/Record"
794
718
  *
795
719
  * const f = (n: number) => `-${n}`
@@ -811,6 +735,7 @@ export declare const map: {
811
735
  *
812
736
  * @example
813
737
  * ```ts
738
+ * import * as assert from "node:assert"
814
739
  * import { mapKeys } from "effect/Record"
815
740
  *
816
741
  * assert.deepStrictEqual(mapKeys({ a: 3, b: 5 }, (key) => key.toUpperCase()), { A: 3, B: 5 })
@@ -825,6 +750,7 @@ export declare const mapKeys: {
825
750
  *
826
751
  * @example
827
752
  * ```ts
753
+ * import * as assert from "node:assert"
828
754
  * import { mapKeys } from "effect/Record"
829
755
  *
830
756
  * assert.deepStrictEqual(mapKeys({ a: 3, b: 5 }, (key) => key.toUpperCase()), { A: 3, B: 5 })
@@ -839,6 +765,7 @@ export declare const mapKeys: {
839
765
  *
840
766
  * @example
841
767
  * ```ts
768
+ * import * as assert from "node:assert"
842
769
  * import { mapKeys } from "effect/Record"
843
770
  *
844
771
  * assert.deepStrictEqual(mapKeys({ a: 3, b: 5 }, (key) => key.toUpperCase()), { A: 3, B: 5 })
@@ -854,6 +781,7 @@ export declare const mapKeys: {
854
781
  *
855
782
  * @example
856
783
  * ```ts
784
+ * import * as assert from "node:assert"
857
785
  * import { mapEntries } from "effect/Record"
858
786
  *
859
787
  * assert.deepStrictEqual(mapEntries({ a: 3, b: 5 }, (a, key) => [key.toUpperCase(), a + 1]), { A: 4, B: 6 })
@@ -868,6 +796,7 @@ export declare const mapEntries: {
868
796
  *
869
797
  * @example
870
798
  * ```ts
799
+ * import * as assert from "node:assert"
871
800
  * import { mapEntries } from "effect/Record"
872
801
  *
873
802
  * assert.deepStrictEqual(mapEntries({ a: 3, b: 5 }, (a, key) => [key.toUpperCase(), a + 1]), { A: 4, B: 6 })
@@ -882,6 +811,7 @@ export declare const mapEntries: {
882
811
  *
883
812
  * @example
884
813
  * ```ts
814
+ * import * as assert from "node:assert"
885
815
  * import { mapEntries } from "effect/Record"
886
816
  *
887
817
  * assert.deepStrictEqual(mapEntries({ a: 3, b: 5 }, (a, key) => [key.toUpperCase(), a + 1]), { A: 4, B: 6 })
@@ -896,11 +826,9 @@ export declare const mapEntries: {
896
826
  * Transforms a record into a record by applying the function `f` to each key and value in the original record.
897
827
  * If the function returns `Some`, the key-value pair is included in the output record.
898
828
  *
899
- * @param self - The input record.
900
- * @param f - The transformation function.
901
- *
902
829
  * @example
903
830
  * ```ts
831
+ * import * as assert from "node:assert"
904
832
  * import { Record, Option } from "effect"
905
833
  *
906
834
  * const x = { a: 1, b: 2, c: 3 }
@@ -915,11 +843,9 @@ export declare const filterMap: {
915
843
  * Transforms a record into a record by applying the function `f` to each key and value in the original record.
916
844
  * If the function returns `Some`, the key-value pair is included in the output record.
917
845
  *
918
- * @param self - The input record.
919
- * @param f - The transformation function.
920
- *
921
846
  * @example
922
847
  * ```ts
848
+ * import * as assert from "node:assert"
923
849
  * import { Record, Option } from "effect"
924
850
  *
925
851
  * const x = { a: 1, b: 2, c: 3 }
@@ -934,11 +860,9 @@ export declare const filterMap: {
934
860
  * Transforms a record into a record by applying the function `f` to each key and value in the original record.
935
861
  * If the function returns `Some`, the key-value pair is included in the output record.
936
862
  *
937
- * @param self - The input record.
938
- * @param f - The transformation function.
939
- *
940
863
  * @example
941
864
  * ```ts
865
+ * import * as assert from "node:assert"
942
866
  * import { Record, Option } from "effect"
943
867
  *
944
868
  * const x = { a: 1, b: 2, c: 3 }
@@ -953,11 +877,9 @@ export declare const filterMap: {
953
877
  /**
954
878
  * Selects properties from a record whose values match the given predicate.
955
879
  *
956
- * @param self - The record to filter.
957
- * @param predicate - A function that returns a `boolean` value to determine if the entry should be included in the new record.
958
- *
959
880
  * @example
960
881
  * ```ts
882
+ * import * as assert from "node:assert"
961
883
  * import { filter } from "effect/Record"
962
884
  *
963
885
  * const x = { a: 1, b: 2, c: 3, d: 4 }
@@ -971,11 +893,9 @@ export declare const filter: {
971
893
  /**
972
894
  * Selects properties from a record whose values match the given predicate.
973
895
  *
974
- * @param self - The record to filter.
975
- * @param predicate - A function that returns a `boolean` value to determine if the entry should be included in the new record.
976
- *
977
896
  * @example
978
897
  * ```ts
898
+ * import * as assert from "node:assert"
979
899
  * import { filter } from "effect/Record"
980
900
  *
981
901
  * const x = { a: 1, b: 2, c: 3, d: 4 }
@@ -989,11 +909,9 @@ export declare const filter: {
989
909
  /**
990
910
  * Selects properties from a record whose values match the given predicate.
991
911
  *
992
- * @param self - The record to filter.
993
- * @param predicate - A function that returns a `boolean` value to determine if the entry should be included in the new record.
994
- *
995
912
  * @example
996
913
  * ```ts
914
+ * import * as assert from "node:assert"
997
915
  * import { filter } from "effect/Record"
998
916
  *
999
917
  * const x = { a: 1, b: 2, c: 3, d: 4 }
@@ -1007,11 +925,9 @@ export declare const filter: {
1007
925
  /**
1008
926
  * Selects properties from a record whose values match the given predicate.
1009
927
  *
1010
- * @param self - The record to filter.
1011
- * @param predicate - A function that returns a `boolean` value to determine if the entry should be included in the new record.
1012
- *
1013
928
  * @example
1014
929
  * ```ts
930
+ * import * as assert from "node:assert"
1015
931
  * import { filter } from "effect/Record"
1016
932
  *
1017
933
  * const x = { a: 1, b: 2, c: 3, d: 4 }
@@ -1025,11 +941,9 @@ export declare const filter: {
1025
941
  /**
1026
942
  * Selects properties from a record whose values match the given predicate.
1027
943
  *
1028
- * @param self - The record to filter.
1029
- * @param predicate - A function that returns a `boolean` value to determine if the entry should be included in the new record.
1030
- *
1031
944
  * @example
1032
945
  * ```ts
946
+ * import * as assert from "node:assert"
1033
947
  * import { filter } from "effect/Record"
1034
948
  *
1035
949
  * const x = { a: 1, b: 2, c: 3, d: 4 }
@@ -1044,10 +958,9 @@ export declare const filter: {
1044
958
  /**
1045
959
  * Given a record with `Option` values, returns a new record containing only the `Some` values, preserving the original keys.
1046
960
  *
1047
- * @param self - A record with `Option` values.
1048
- *
1049
961
  * @example
1050
962
  * ```ts
963
+ * import * as assert from "node:assert"
1051
964
  * import { Record, Option } from "effect"
1052
965
  *
1053
966
  * assert.deepStrictEqual(
@@ -1065,6 +978,7 @@ export declare const getSomes: <K extends string, A>(self: ReadonlyRecord<K, Opt
1065
978
  *
1066
979
  * @example
1067
980
  * ```ts
981
+ * import * as assert from "node:assert"
1068
982
  * import { Record, Either } from "effect"
1069
983
  *
1070
984
  * assert.deepStrictEqual(
@@ -1082,6 +996,7 @@ export declare const getLefts: <K extends string, R, L>(self: ReadonlyRecord<K,
1082
996
  *
1083
997
  * @example
1084
998
  * ```ts
999
+ * import * as assert from "node:assert"
1085
1000
  * import { Record, Either } from "effect"
1086
1001
  *
1087
1002
  * assert.deepStrictEqual(
@@ -1097,11 +1012,9 @@ export declare const getRights: <K extends string, R, L>(self: ReadonlyRecord<K,
1097
1012
  /**
1098
1013
  * Partitions the elements of a record into two groups: those that match a predicate, and those that don't.
1099
1014
  *
1100
- * @param self - The record to partition.
1101
- * @param f - The predicate function to apply to each element.
1102
- *
1103
1015
  * @example
1104
1016
  * ```ts
1017
+ * import * as assert from "node:assert"
1105
1018
  * import { Record, Either } from "effect"
1106
1019
  *
1107
1020
  * const x = { a: 1, b: 2, c: 3 }
@@ -1116,11 +1029,9 @@ export declare const partitionMap: {
1116
1029
  /**
1117
1030
  * Partitions the elements of a record into two groups: those that match a predicate, and those that don't.
1118
1031
  *
1119
- * @param self - The record to partition.
1120
- * @param f - The predicate function to apply to each element.
1121
- *
1122
1032
  * @example
1123
1033
  * ```ts
1034
+ * import * as assert from "node:assert"
1124
1035
  * import { Record, Either } from "effect"
1125
1036
  *
1126
1037
  * const x = { a: 1, b: 2, c: 3 }
@@ -1135,11 +1046,9 @@ export declare const partitionMap: {
1135
1046
  /**
1136
1047
  * Partitions the elements of a record into two groups: those that match a predicate, and those that don't.
1137
1048
  *
1138
- * @param self - The record to partition.
1139
- * @param f - The predicate function to apply to each element.
1140
- *
1141
1049
  * @example
1142
1050
  * ```ts
1051
+ * import * as assert from "node:assert"
1143
1052
  * import { Record, Either } from "effect"
1144
1053
  *
1145
1054
  * const x = { a: 1, b: 2, c: 3 }
@@ -1156,10 +1065,9 @@ export declare const partitionMap: {
1156
1065
  * Partitions a record of `Either` values into two separate records,
1157
1066
  * one with the `Left` values and one with the `Right` values.
1158
1067
  *
1159
- * @param self - the record to partition.
1160
- *
1161
1068
  * @example
1162
1069
  * ```ts
1070
+ * import * as assert from "node:assert"
1163
1071
  * import { Record, Either } from "effect"
1164
1072
  *
1165
1073
  * assert.deepStrictEqual(
@@ -1175,11 +1083,9 @@ export declare const separate: <K extends string, A, B>(self: ReadonlyRecord<K,
1175
1083
  /**
1176
1084
  * Partitions a record into two separate records based on the result of a predicate function.
1177
1085
  *
1178
- * @param self - The input record to partition.
1179
- * @param predicate - The partitioning function to determine the partitioning of each value of the record.
1180
- *
1181
1086
  * @example
1182
1087
  * ```ts
1088
+ * import * as assert from "node:assert"
1183
1089
  * import { partition } from "effect/Record"
1184
1090
  *
1185
1091
  * assert.deepStrictEqual(
@@ -1195,11 +1101,9 @@ export declare const partition: {
1195
1101
  /**
1196
1102
  * Partitions a record into two separate records based on the result of a predicate function.
1197
1103
  *
1198
- * @param self - The input record to partition.
1199
- * @param predicate - The partitioning function to determine the partitioning of each value of the record.
1200
- *
1201
1104
  * @example
1202
1105
  * ```ts
1106
+ * import * as assert from "node:assert"
1203
1107
  * import { partition } from "effect/Record"
1204
1108
  *
1205
1109
  * assert.deepStrictEqual(
@@ -1218,11 +1122,9 @@ export declare const partition: {
1218
1122
  /**
1219
1123
  * Partitions a record into two separate records based on the result of a predicate function.
1220
1124
  *
1221
- * @param self - The input record to partition.
1222
- * @param predicate - The partitioning function to determine the partitioning of each value of the record.
1223
- *
1224
1125
  * @example
1225
1126
  * ```ts
1127
+ * import * as assert from "node:assert"
1226
1128
  * import { partition } from "effect/Record"
1227
1129
  *
1228
1130
  * assert.deepStrictEqual(
@@ -1238,11 +1140,9 @@ export declare const partition: {
1238
1140
  /**
1239
1141
  * Partitions a record into two separate records based on the result of a predicate function.
1240
1142
  *
1241
- * @param self - The input record to partition.
1242
- * @param predicate - The partitioning function to determine the partitioning of each value of the record.
1243
- *
1244
1143
  * @example
1245
1144
  * ```ts
1145
+ * import * as assert from "node:assert"
1246
1146
  * import { partition } from "effect/Record"
1247
1147
  *
1248
1148
  * assert.deepStrictEqual(
@@ -1261,11 +1161,9 @@ export declare const partition: {
1261
1161
  /**
1262
1162
  * Partitions a record into two separate records based on the result of a predicate function.
1263
1163
  *
1264
- * @param self - The input record to partition.
1265
- * @param predicate - The partitioning function to determine the partitioning of each value of the record.
1266
- *
1267
1164
  * @example
1268
1165
  * ```ts
1166
+ * import * as assert from "node:assert"
1269
1167
  * import { partition } from "effect/Record"
1270
1168
  *
1271
1169
  * assert.deepStrictEqual(
@@ -1282,28 +1180,21 @@ export declare const partition: {
1282
1180
  /**
1283
1181
  * Retrieve the keys of a given record as an array.
1284
1182
  *
1285
- * @param self - The object for which you want to get the keys.
1286
- *
1287
1183
  * @since 2.0.0
1288
1184
  */
1289
1185
  export declare const keys: <K extends string | symbol, A>(self: ReadonlyRecord<K, A>) => Array<K & string>;
1290
1186
  /**
1291
1187
  * Retrieve the values of a given record as an array.
1292
1188
  *
1293
- * @param self - The object for which you want to get the values.
1294
- *
1295
1189
  * @since 2.0.0
1296
1190
  */
1297
1191
  export declare const values: <K extends string, A>(self: ReadonlyRecord<K, A>) => Array<A>;
1298
1192
  /**
1299
1193
  * Add a new key-value pair or update an existing key's value in a record.
1300
1194
  *
1301
- * @param self - The record to which you want to add or update a key-value pair.
1302
- * @param key - The key you want to add or update.
1303
- * @param values - The value you want to associate with the key.
1304
- *
1305
1195
  * @example
1306
1196
  * ```ts
1197
+ * import * as assert from "node:assert"
1307
1198
  * import { set } from "effect/Record"
1308
1199
  *
1309
1200
  * assert.deepStrictEqual(set("a", 5)({ a: 1, b: 2 }), { a: 5, b: 2 });
@@ -1316,12 +1207,9 @@ export declare const set: {
1316
1207
  /**
1317
1208
  * Add a new key-value pair or update an existing key's value in a record.
1318
1209
  *
1319
- * @param self - The record to which you want to add or update a key-value pair.
1320
- * @param key - The key you want to add or update.
1321
- * @param values - The value you want to associate with the key.
1322
- *
1323
1210
  * @example
1324
1211
  * ```ts
1212
+ * import * as assert from "node:assert"
1325
1213
  * import { set } from "effect/Record"
1326
1214
  *
1327
1215
  * assert.deepStrictEqual(set("a", 5)({ a: 1, b: 2 }), { a: 5, b: 2 });
@@ -1334,12 +1222,9 @@ export declare const set: {
1334
1222
  /**
1335
1223
  * Add a new key-value pair or update an existing key's value in a record.
1336
1224
  *
1337
- * @param self - The record to which you want to add or update a key-value pair.
1338
- * @param key - The key you want to add or update.
1339
- * @param values - The value you want to associate with the key.
1340
- *
1341
1225
  * @example
1342
1226
  * ```ts
1227
+ * import * as assert from "node:assert"
1343
1228
  * import { set } from "effect/Record"
1344
1229
  *
1345
1230
  * assert.deepStrictEqual(set("a", 5)({ a: 1, b: 2 }), { a: 5, b: 2 });
@@ -1354,12 +1239,9 @@ export declare const set: {
1354
1239
  * Replace a key's value in a record and return the updated record.
1355
1240
  * If the key does not exist in the record, a copy of the original record is returned.
1356
1241
  *
1357
- * @param self - The original record.
1358
- * @param key - The key to replace.
1359
- * @param value - The new value to associate with the key.
1360
- *
1361
1242
  * @example
1362
1243
  * ```ts
1244
+ * import * as assert from "node:assert"
1363
1245
  * import { Record } from "effect"
1364
1246
  *
1365
1247
  * assert.deepStrictEqual(Record.replace("a", 3)({ a: 1, b: 2 }), { a: 3, b: 2 });
@@ -1373,12 +1255,9 @@ export declare const replace: {
1373
1255
  * Replace a key's value in a record and return the updated record.
1374
1256
  * If the key does not exist in the record, a copy of the original record is returned.
1375
1257
  *
1376
- * @param self - The original record.
1377
- * @param key - The key to replace.
1378
- * @param value - The new value to associate with the key.
1379
- *
1380
1258
  * @example
1381
1259
  * ```ts
1260
+ * import * as assert from "node:assert"
1382
1261
  * import { Record } from "effect"
1383
1262
  *
1384
1263
  * assert.deepStrictEqual(Record.replace("a", 3)({ a: 1, b: 2 }), { a: 3, b: 2 });
@@ -1392,12 +1271,9 @@ export declare const replace: {
1392
1271
  * Replace a key's value in a record and return the updated record.
1393
1272
  * If the key does not exist in the record, a copy of the original record is returned.
1394
1273
  *
1395
- * @param self - The original record.
1396
- * @param key - The key to replace.
1397
- * @param value - The new value to associate with the key.
1398
- *
1399
1274
  * @example
1400
1275
  * ```ts
1276
+ * import * as assert from "node:assert"
1401
1277
  * import { Record } from "effect"
1402
1278
  *
1403
1279
  * assert.deepStrictEqual(Record.replace("a", 3)({ a: 1, b: 2 }), { a: 3, b: 2 });
@@ -1411,10 +1287,6 @@ export declare const replace: {
1411
1287
  /**
1412
1288
  * Check if all the keys and values in one record are also found in another record.
1413
1289
  *
1414
- * @param self - The first record to check.
1415
- * @param that - The second record to compare against.
1416
- * @param equivalence - A function to compare values.
1417
- *
1418
1290
  * @since 2.0.0
1419
1291
  */
1420
1292
  export declare const isSubrecordBy: <A>(equivalence: Equivalence<A>) => {
@@ -1425,9 +1297,6 @@ export declare const isSubrecordBy: <A>(equivalence: Equivalence<A>) => {
1425
1297
  * Check if one record is a subrecord of another, meaning it contains all the keys and values found in the second record.
1426
1298
  * This comparison uses default equality checks (`Equal.equivalence()`).
1427
1299
  *
1428
- * @param self - The first record to check.
1429
- * @param that - The second record to compare against.
1430
- *
1431
1300
  * @since 2.0.0
1432
1301
  */
1433
1302
  export declare const isSubrecord: {
@@ -1435,9 +1304,6 @@ export declare const isSubrecord: {
1435
1304
  * Check if one record is a subrecord of another, meaning it contains all the keys and values found in the second record.
1436
1305
  * This comparison uses default equality checks (`Equal.equivalence()`).
1437
1306
  *
1438
- * @param self - The first record to check.
1439
- * @param that - The second record to compare against.
1440
- *
1441
1307
  * @since 2.0.0
1442
1308
  */
1443
1309
  <K extends string, A>(that: ReadonlyRecord<K, A>): (self: ReadonlyRecord<K, A>) => boolean;
@@ -1445,9 +1311,6 @@ export declare const isSubrecord: {
1445
1311
  * Check if one record is a subrecord of another, meaning it contains all the keys and values found in the second record.
1446
1312
  * This comparison uses default equality checks (`Equal.equivalence()`).
1447
1313
  *
1448
- * @param self - The first record to check.
1449
- * @param that - The second record to compare against.
1450
- *
1451
1314
  * @since 2.0.0
1452
1315
  */
1453
1316
  <K extends string, A>(self: ReadonlyRecord<K, A>, that: ReadonlyRecord<K, A>): boolean;
@@ -1455,10 +1318,6 @@ export declare const isSubrecord: {
1455
1318
  /**
1456
1319
  * Reduce a record to a single value by combining its entries with a specified function.
1457
1320
  *
1458
- * @param self - The record to reduce.
1459
- * @param zero - The initial value of the accumulator.
1460
- * @param f - The function to combine entries (accumulator, value, key).
1461
- *
1462
1321
  * @category folding
1463
1322
  * @since 2.0.0
1464
1323
  */
@@ -1466,10 +1325,6 @@ export declare const reduce: {
1466
1325
  /**
1467
1326
  * Reduce a record to a single value by combining its entries with a specified function.
1468
1327
  *
1469
- * @param self - The record to reduce.
1470
- * @param zero - The initial value of the accumulator.
1471
- * @param f - The function to combine entries (accumulator, value, key).
1472
- *
1473
1328
  * @category folding
1474
1329
  * @since 2.0.0
1475
1330
  */
@@ -1477,10 +1332,6 @@ export declare const reduce: {
1477
1332
  /**
1478
1333
  * Reduce a record to a single value by combining its entries with a specified function.
1479
1334
  *
1480
- * @param self - The record to reduce.
1481
- * @param zero - The initial value of the accumulator.
1482
- * @param f - The function to combine entries (accumulator, value, key).
1483
- *
1484
1335
  * @category folding
1485
1336
  * @since 2.0.0
1486
1337
  */
@@ -1489,45 +1340,30 @@ export declare const reduce: {
1489
1340
  /**
1490
1341
  * Check if all entries in a record meet a specific condition.
1491
1342
  *
1492
- * @param self - The record to check.
1493
- * @param predicate - The condition to test entries (value, key).
1494
- *
1495
1343
  * @since 2.0.0
1496
1344
  */
1497
1345
  export declare const every: {
1498
1346
  /**
1499
1347
  * Check if all entries in a record meet a specific condition.
1500
1348
  *
1501
- * @param self - The record to check.
1502
- * @param predicate - The condition to test entries (value, key).
1503
- *
1504
1349
  * @since 2.0.0
1505
1350
  */
1506
1351
  <A, K extends string, B extends A>(refinement: (value: A, key: K) => value is B): (self: ReadonlyRecord<K, A>) => self is ReadonlyRecord<K, B>;
1507
1352
  /**
1508
1353
  * Check if all entries in a record meet a specific condition.
1509
1354
  *
1510
- * @param self - The record to check.
1511
- * @param predicate - The condition to test entries (value, key).
1512
- *
1513
1355
  * @since 2.0.0
1514
1356
  */
1515
1357
  <A, K extends string>(predicate: (value: A, key: K) => boolean): (self: ReadonlyRecord<K, A>) => boolean;
1516
1358
  /**
1517
1359
  * Check if all entries in a record meet a specific condition.
1518
1360
  *
1519
- * @param self - The record to check.
1520
- * @param predicate - The condition to test entries (value, key).
1521
- *
1522
1361
  * @since 2.0.0
1523
1362
  */
1524
1363
  <A, K extends string, B extends A>(self: ReadonlyRecord<K, A>, refinement: (value: A, key: K) => value is B): self is ReadonlyRecord<K, B>;
1525
1364
  /**
1526
1365
  * Check if all entries in a record meet a specific condition.
1527
1366
  *
1528
- * @param self - The record to check.
1529
- * @param predicate - The condition to test entries (value, key).
1530
- *
1531
1367
  * @since 2.0.0
1532
1368
  */
1533
1369
  <K extends string, A>(self: ReadonlyRecord<K, A>, predicate: (value: A, key: K) => boolean): boolean;
@@ -1535,27 +1371,18 @@ export declare const every: {
1535
1371
  /**
1536
1372
  * Check if any entry in a record meets a specific condition.
1537
1373
  *
1538
- * @param self - The record to check.
1539
- * @param predicate - The condition to test entries (value, key).
1540
- *
1541
1374
  * @since 2.0.0
1542
1375
  */
1543
1376
  export declare const some: {
1544
1377
  /**
1545
1378
  * Check if any entry in a record meets a specific condition.
1546
1379
  *
1547
- * @param self - The record to check.
1548
- * @param predicate - The condition to test entries (value, key).
1549
- *
1550
1380
  * @since 2.0.0
1551
1381
  */
1552
1382
  <A, K extends string>(predicate: (value: A, key: K) => boolean): (self: ReadonlyRecord<K, A>) => boolean;
1553
1383
  /**
1554
1384
  * Check if any entry in a record meets a specific condition.
1555
1385
  *
1556
- * @param self - The record to check.
1557
- * @param predicate - The condition to test entries (value, key).
1558
- *
1559
1386
  * @since 2.0.0
1560
1387
  */
1561
1388
  <K extends string, A>(self: ReadonlyRecord<K, A>, predicate: (value: A, key: K) => boolean): boolean;
@@ -1563,30 +1390,18 @@ export declare const some: {
1563
1390
  /**
1564
1391
  * Merge two records, preserving entries that exist in either of the records.
1565
1392
  *
1566
- * @param self - The first record.
1567
- * @param that - The second record to combine with the first.
1568
- * @param combine - A function to specify how to merge entries with the same key.
1569
- *
1570
1393
  * @since 2.0.0
1571
1394
  */
1572
1395
  export declare const union: {
1573
1396
  /**
1574
1397
  * Merge two records, preserving entries that exist in either of the records.
1575
1398
  *
1576
- * @param self - The first record.
1577
- * @param that - The second record to combine with the first.
1578
- * @param combine - A function to specify how to merge entries with the same key.
1579
- *
1580
1399
  * @since 2.0.0
1581
1400
  */
1582
1401
  <K1 extends string, A, B, C>(that: ReadonlyRecord<K1, B>, combine: (selfValue: A, thatValue: B) => C): <K0 extends string>(self: ReadonlyRecord<K0, A>) => Record<K0 | K1, A | B | C>;
1583
1402
  /**
1584
1403
  * Merge two records, preserving entries that exist in either of the records.
1585
1404
  *
1586
- * @param self - The first record.
1587
- * @param that - The second record to combine with the first.
1588
- * @param combine - A function to specify how to merge entries with the same key.
1589
- *
1590
1405
  * @since 2.0.0
1591
1406
  */
1592
1407
  <K0 extends string, A, K1 extends string, B, C>(self: ReadonlyRecord<K0, A>, that: ReadonlyRecord<K1, B>, combine: (selfValue: A, thatValue: B) => C): Record<K0 | K1, A | B | C>;
@@ -1594,30 +1409,18 @@ export declare const union: {
1594
1409
  /**
1595
1410
  * Merge two records, retaining only the entries that exist in both records.
1596
1411
  *
1597
- * @param self - The first record.
1598
- * @param that - The second record to merge with the first.
1599
- * @param combine - A function to specify how to merge entries with the same key.
1600
- *
1601
1412
  * @since 2.0.0
1602
1413
  */
1603
1414
  export declare const intersection: {
1604
1415
  /**
1605
1416
  * Merge two records, retaining only the entries that exist in both records.
1606
1417
  *
1607
- * @param self - The first record.
1608
- * @param that - The second record to merge with the first.
1609
- * @param combine - A function to specify how to merge entries with the same key.
1610
- *
1611
1418
  * @since 2.0.0
1612
1419
  */
1613
1420
  <K1 extends string, A, B, C>(that: ReadonlyRecord<K1, B>, combine: (selfValue: A, thatValue: B) => C): <K0 extends string>(self: ReadonlyRecord<K0, A>) => Record<ReadonlyRecord.IntersectKeys<K0, K1>, C>;
1614
1421
  /**
1615
1422
  * Merge two records, retaining only the entries that exist in both records.
1616
1423
  *
1617
- * @param self - The first record.
1618
- * @param that - The second record to merge with the first.
1619
- * @param combine - A function to specify how to merge entries with the same key.
1620
- *
1621
1424
  * @since 2.0.0
1622
1425
  */
1623
1426
  <K0 extends string, A, K1 extends string, B, C>(self: ReadonlyRecord<K0, A>, that: ReadonlyRecord<K1, B>, combine: (selfValue: A, thatValue: B) => C): Record<ReadonlyRecord.IntersectKeys<K0, K1>, C>;
@@ -1625,27 +1428,18 @@ export declare const intersection: {
1625
1428
  /**
1626
1429
  * Merge two records, preserving only the entries that are unique to each record.
1627
1430
  *
1628
- * @param self - The first record.
1629
- * @param that - The second record to compare with the first.
1630
- *
1631
1431
  * @since 2.0.0
1632
1432
  */
1633
1433
  export declare const difference: {
1634
1434
  /**
1635
1435
  * Merge two records, preserving only the entries that are unique to each record.
1636
1436
  *
1637
- * @param self - The first record.
1638
- * @param that - The second record to compare with the first.
1639
- *
1640
1437
  * @since 2.0.0
1641
1438
  */
1642
1439
  <K1 extends string, B>(that: ReadonlyRecord<K1, B>): <K0 extends string, A>(self: ReadonlyRecord<K0, A>) => Record<K0 | K1, A | B>;
1643
1440
  /**
1644
1441
  * Merge two records, preserving only the entries that are unique to each record.
1645
1442
  *
1646
- * @param self - The first record.
1647
- * @param that - The second record to compare with the first.
1648
- *
1649
1443
  * @since 2.0.0
1650
1444
  */
1651
1445
  <K0 extends string, A, K1 extends string, B>(self: ReadonlyRecord<K0, A>, that: ReadonlyRecord<K1, B>): Record<K0 | K1, A | B>;
@@ -1653,8 +1447,6 @@ export declare const difference: {
1653
1447
  /**
1654
1448
  * Create an `Equivalence` for records using the provided `Equivalence` for values.
1655
1449
  *
1656
- * @param equivalence - An `Equivalence` for the values contained in the records.
1657
- *
1658
1450
  * @category instances
1659
1451
  * @since 2.0.0
1660
1452
  */
@@ -1662,9 +1454,6 @@ export declare const getEquivalence: <K extends string, A>(equivalence: Equivale
1662
1454
  /**
1663
1455
  * Create a non-empty record from a single element.
1664
1456
  *
1665
- * @param key - The key for the element.
1666
- * @param value - The value associated with the key.
1667
- *
1668
1457
  * @category constructors
1669
1458
  * @since 2.0.0
1670
1459
  */