effect 4.0.0-beta.82 → 4.0.0-beta.84

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 (199) hide show
  1. package/dist/Array.d.ts +64 -64
  2. package/dist/Array.js +26 -26
  3. package/dist/Cache.d.ts +1 -1
  4. package/dist/Cache.js +1 -1
  5. package/dist/Cause.d.ts +68 -68
  6. package/dist/Cause.js +47 -47
  7. package/dist/Channel.d.ts +5 -5
  8. package/dist/Channel.js +3 -3
  9. package/dist/Clock.d.ts +1 -1
  10. package/dist/Clock.js +1 -1
  11. package/dist/Combiner.d.ts +9 -9
  12. package/dist/Combiner.js +8 -8
  13. package/dist/Config.d.ts +15 -94
  14. package/dist/Config.d.ts.map +1 -1
  15. package/dist/Config.js +22 -70
  16. package/dist/Config.js.map +1 -1
  17. package/dist/ConfigProvider.d.ts +58 -74
  18. package/dist/ConfigProvider.d.ts.map +1 -1
  19. package/dist/ConfigProvider.js +66 -41
  20. package/dist/ConfigProvider.js.map +1 -1
  21. package/dist/Console.d.ts +1 -1
  22. package/dist/Console.js +1 -1
  23. package/dist/Data.d.ts +15 -15
  24. package/dist/Data.js +3 -3
  25. package/dist/DateTime.d.ts +6 -6
  26. package/dist/DateTime.js +2 -2
  27. package/dist/Duration.d.ts +3 -3
  28. package/dist/Duration.js +3 -3
  29. package/dist/Effect.d.ts +84 -45
  30. package/dist/Effect.d.ts.map +1 -1
  31. package/dist/Effect.js +72 -33
  32. package/dist/Effect.js.map +1 -1
  33. package/dist/Equal.d.ts +7 -7
  34. package/dist/Equal.js +5 -5
  35. package/dist/Equivalence.d.ts +17 -17
  36. package/dist/Equivalence.js +13 -13
  37. package/dist/Exit.d.ts +3 -3
  38. package/dist/Exit.js +3 -3
  39. package/dist/Formatter.d.ts +5 -5
  40. package/dist/Formatter.js +4 -4
  41. package/dist/Function.d.ts +10 -10
  42. package/dist/Function.js +3 -3
  43. package/dist/HashMap.d.ts +3 -3
  44. package/dist/HashMap.js +1 -1
  45. package/dist/Iterable.d.ts +6 -6
  46. package/dist/Iterable.js +2 -2
  47. package/dist/JsonPatch.d.ts +2 -2
  48. package/dist/Layer.d.ts +1 -1
  49. package/dist/Layer.js +1 -1
  50. package/dist/Logger.d.ts +1 -1
  51. package/dist/Logger.js +1 -1
  52. package/dist/Match.d.ts +8 -8
  53. package/dist/Match.js +8 -8
  54. package/dist/Metric.d.ts +3 -3
  55. package/dist/Metric.js +3 -3
  56. package/dist/Optic.d.ts +30 -30
  57. package/dist/Optic.js +12 -12
  58. package/dist/Option.d.ts +7 -7
  59. package/dist/Option.js +7 -7
  60. package/dist/Order.d.ts +23 -23
  61. package/dist/Order.js +20 -20
  62. package/dist/Pool.d.ts +1 -1
  63. package/dist/Pool.js +1 -1
  64. package/dist/Predicate.d.ts +88 -88
  65. package/dist/Predicate.js +47 -47
  66. package/dist/PubSub.d.ts +3 -3
  67. package/dist/PubSub.js +3 -3
  68. package/dist/Reducer.d.ts +1 -1
  69. package/dist/Reducer.js +1 -1
  70. package/dist/Result.d.ts +18 -18
  71. package/dist/Result.js +8 -8
  72. package/dist/Runtime.d.ts +1 -1
  73. package/dist/Runtime.js +1 -1
  74. package/dist/Schema.d.ts +265 -120
  75. package/dist/Schema.d.ts.map +1 -1
  76. package/dist/Schema.js +285 -116
  77. package/dist/Schema.js.map +1 -1
  78. package/dist/SchemaAST.d.ts +1 -1
  79. package/dist/SchemaAST.d.ts.map +1 -1
  80. package/dist/SchemaAST.js +13 -9
  81. package/dist/SchemaAST.js.map +1 -1
  82. package/dist/SchemaGetter.d.ts +48 -48
  83. package/dist/SchemaGetter.js +44 -44
  84. package/dist/SchemaIssue.d.ts +3 -3
  85. package/dist/SchemaIssue.js +3 -3
  86. package/dist/SchemaParser.d.ts +122 -22
  87. package/dist/SchemaParser.d.ts.map +1 -1
  88. package/dist/SchemaParser.js +186 -50
  89. package/dist/SchemaParser.js.map +1 -1
  90. package/dist/SchemaRepresentation.d.ts +1 -1
  91. package/dist/SchemaRepresentation.d.ts.map +1 -1
  92. package/dist/SchemaRepresentation.js +96 -2
  93. package/dist/SchemaRepresentation.js.map +1 -1
  94. package/dist/SchemaTransformation.d.ts +20 -20
  95. package/dist/SchemaTransformation.js +18 -18
  96. package/dist/Stream.d.ts +3 -3
  97. package/dist/Stream.js +2 -2
  98. package/dist/Stream.js.map +1 -1
  99. package/dist/String.d.ts +1 -1
  100. package/dist/String.js +1 -1
  101. package/dist/Struct.d.ts +1 -1
  102. package/dist/Struct.js +1 -1
  103. package/dist/Types.d.ts +13 -13
  104. package/dist/internal/effect.js +23 -10
  105. package/dist/internal/effect.js.map +1 -1
  106. package/dist/internal/schema/cause.d.ts +2 -0
  107. package/dist/internal/schema/cause.d.ts.map +1 -0
  108. package/dist/internal/schema/cause.js +24 -0
  109. package/dist/internal/schema/cause.js.map +1 -0
  110. package/dist/internal/schema/schema.d.ts +8 -4
  111. package/dist/internal/schema/schema.d.ts.map +1 -1
  112. package/dist/internal/schema/schema.js +21 -8
  113. package/dist/internal/schema/schema.js.map +1 -1
  114. package/dist/testing/TestSchema.d.ts +3 -3
  115. package/dist/testing/TestSchema.js +1 -1
  116. package/dist/unstable/ai/AiError.d.ts +1 -1
  117. package/dist/unstable/ai/AiError.js +1 -1
  118. package/dist/unstable/ai/Chat.d.ts +1 -1
  119. package/dist/unstable/ai/Chat.js +1 -1
  120. package/dist/unstable/cli/Prompt.js +2 -2
  121. package/dist/unstable/cli/Prompt.js.map +1 -1
  122. package/dist/unstable/httpapi/HttpApiScalar.d.ts +2 -2
  123. package/dist/unstable/httpapi/HttpApiSchema.d.ts +39 -0
  124. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  125. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  126. package/dist/unstable/rpc/Rpc.d.ts +1 -1
  127. package/dist/unstable/rpc/Rpc.js +1 -1
  128. package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
  129. package/dist/unstable/rpc/RpcGroup.js +3 -4
  130. package/dist/unstable/rpc/RpcGroup.js.map +1 -1
  131. package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
  132. package/dist/unstable/sql/SqlResolver.js +15 -2
  133. package/dist/unstable/sql/SqlResolver.js.map +1 -1
  134. package/dist/unstable/workflow/Activity.d.ts +1 -0
  135. package/dist/unstable/workflow/Activity.d.ts.map +1 -1
  136. package/dist/unstable/workflow/Activity.js +1 -0
  137. package/dist/unstable/workflow/Activity.js.map +1 -1
  138. package/dist/unstable/workflow/WorkflowEngine.js +1 -1
  139. package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
  140. package/package.json +1 -1
  141. package/src/Array.ts +65 -65
  142. package/src/Cache.ts +1 -1
  143. package/src/Cause.ts +68 -68
  144. package/src/Channel.ts +5 -5
  145. package/src/Clock.ts +1 -1
  146. package/src/Combiner.ts +9 -9
  147. package/src/Config.ts +40 -108
  148. package/src/ConfigProvider.ts +139 -100
  149. package/src/Console.ts +1 -1
  150. package/src/Data.ts +15 -15
  151. package/src/DateTime.ts +6 -6
  152. package/src/Duration.ts +3 -3
  153. package/src/Effect.ts +89 -45
  154. package/src/Equal.ts +7 -7
  155. package/src/Equivalence.ts +17 -17
  156. package/src/Exit.ts +3 -3
  157. package/src/Formatter.ts +5 -5
  158. package/src/Function.ts +10 -10
  159. package/src/HashMap.ts +3 -3
  160. package/src/Iterable.ts +6 -6
  161. package/src/JsonPatch.ts +2 -2
  162. package/src/Layer.ts +1 -1
  163. package/src/Logger.ts +1 -1
  164. package/src/Match.ts +8 -8
  165. package/src/Metric.ts +3 -3
  166. package/src/Optic.ts +30 -30
  167. package/src/Option.ts +7 -7
  168. package/src/Order.ts +23 -23
  169. package/src/Pool.ts +1 -1
  170. package/src/Predicate.ts +88 -88
  171. package/src/PubSub.ts +3 -3
  172. package/src/Reducer.ts +1 -1
  173. package/src/Result.ts +20 -20
  174. package/src/Runtime.ts +1 -1
  175. package/src/Schema.ts +314 -131
  176. package/src/SchemaAST.ts +20 -11
  177. package/src/SchemaGetter.ts +48 -48
  178. package/src/SchemaIssue.ts +3 -3
  179. package/src/SchemaParser.ts +197 -58
  180. package/src/SchemaRepresentation.ts +73 -3
  181. package/src/SchemaTransformation.ts +20 -20
  182. package/src/Stream.ts +4 -4
  183. package/src/String.ts +1 -1
  184. package/src/Struct.ts +1 -1
  185. package/src/Types.ts +13 -13
  186. package/src/internal/effect.ts +29 -10
  187. package/src/internal/schema/cause.ts +26 -0
  188. package/src/internal/schema/schema.ts +36 -10
  189. package/src/testing/TestSchema.ts +3 -3
  190. package/src/unstable/ai/AiError.ts +1 -1
  191. package/src/unstable/ai/Chat.ts +1 -1
  192. package/src/unstable/cli/Prompt.ts +1 -1
  193. package/src/unstable/httpapi/HttpApiScalar.ts +2 -2
  194. package/src/unstable/httpapi/HttpApiSchema.ts +18 -6
  195. package/src/unstable/rpc/Rpc.ts +1 -1
  196. package/src/unstable/rpc/RpcGroup.ts +3 -4
  197. package/src/unstable/sql/SqlResolver.ts +15 -2
  198. package/src/unstable/workflow/Activity.ts +2 -0
  199. package/src/unstable/workflow/WorkflowEngine.ts +1 -1
@@ -89,7 +89,7 @@ export class Getter extends Pipeable.Class {
89
89
  * The getter is pure and always returns `Option.some(t)` regardless of whether
90
90
  * the input is `Some` or `None`.
91
91
  *
92
- * **Example** (Constant getter)
92
+ * **Example** (Returning a constant getter)
93
93
  *
94
94
  * ```ts
95
95
  * import { SchemaGetter } from "effect"
@@ -120,7 +120,7 @@ export function succeed(t) {
120
120
  * - Always fails with the `Issue` returned by `f`.
121
121
  * - The failure function receives the original `Option<E>` input for error context.
122
122
  *
123
- * **Example** (Always-failing getter)
123
+ * **Example** (Defining an always-failing getter)
124
124
  *
125
125
  * ```ts
126
126
  * import { Option, SchemaGetter, SchemaIssue } from "effect"
@@ -201,7 +201,7 @@ export function passthroughSubtype() {
201
201
  * - When input is `Some`, passes it through unchanged.
202
202
  * - `f` receives the parse options and may return `None` to keep the value absent.
203
203
  *
204
- * **Example** (Default timestamp for missing field)
204
+ * **Example** (Providing a default timestamp for a missing field)
205
205
  *
206
206
  * ```ts
207
207
  * import { Effect, Option, SchemaGetter } from "effect"
@@ -235,7 +235,7 @@ export function onNone(f) {
235
235
  * - When input is `Some`, passes it through unchanged.
236
236
  * - Optional `annotations` customize the error message for the missing key.
237
237
  *
238
- * **Example** (Required struct field)
238
+ * **Example** (Defining a required struct field)
239
239
  *
240
240
  * ```ts
241
241
  * import { SchemaGetter } from "effect"
@@ -267,7 +267,7 @@ export function required(annotations) {
267
267
  * - When input is `Some(e)`, calls `f(e, options)` to produce the result.
268
268
  * - `f` may return `None` to omit the value, or fail with an `Issue`.
269
269
  *
270
- * **Example** (Transform only present values)
270
+ * **Example** (Transforming only present values)
271
271
  *
272
272
  * ```ts
273
273
  * import { Effect, Option, SchemaGetter } from "effect"
@@ -307,7 +307,7 @@ export function onSome(f) {
307
307
  * message string or a full {@link SchemaIssue.Issue}).
308
308
  * - Does not transform the value — input and output types are the same.
309
309
  *
310
- * **Example** (Effectful validation)
310
+ * **Example** (Validating effectfully)
311
311
  *
312
312
  * ```ts
313
313
  * import { Effect, SchemaGetter } from "effect"
@@ -347,7 +347,7 @@ export function checkEffect(f) {
347
347
  * - Skips `None` inputs — only called when a value is present.
348
348
  * - Never fails.
349
349
  *
350
- * **Example** (String to number transformation pair)
350
+ * **Example** (Transforming strings to numbers)
351
351
  *
352
352
  * ```ts
353
353
  * import { Schema, SchemaGetter } from "effect"
@@ -421,7 +421,7 @@ export function transformOrFail(f) {
421
421
  * must return `Option<T>`, so it can turn a present value into absent or an
422
422
  * absent value into present.
423
423
  *
424
- * **Example** (Filter out empty strings)
424
+ * **Example** (Filtering out empty strings)
425
425
  *
426
426
  * ```ts
427
427
  * import { Option, SchemaGetter } from "effect"
@@ -453,7 +453,7 @@ export function transformOptional(f) {
453
453
  * - Always returns `Option.None` regardless of input.
454
454
  * - Never fails.
455
455
  *
456
- * **Example** (Omit a field during encoding)
456
+ * **Example** (Omitting a field during encoding)
457
457
  *
458
458
  * ```ts
459
459
  * import { SchemaGetter } from "effect"
@@ -484,7 +484,7 @@ export function omit() {
484
484
  * - If the input is `Some(value)` where value is not `undefined`, passes it through.
485
485
  * - `defaultValue` is an `Effect` that will be executed each time a default is needed.
486
486
  *
487
- * **Example** (Default value for optional field)
487
+ * **Example** (Providing a default value for an optional field)
488
488
  *
489
489
  * ```ts
490
490
  * import { Effect, SchemaGetter } from "effect"
@@ -517,7 +517,7 @@ export function withDefault(defaultValue) {
517
517
  *
518
518
  * The getter is pure, never fails, and delegates to `globalThis.String`.
519
519
  *
520
- * **Example** (Coerce to string)
520
+ * **Example** (Coercing to a string)
521
521
  *
522
522
  * ```ts
523
523
  * import { SchemaGetter } from "effect"
@@ -547,7 +547,7 @@ export function String() {
547
547
  * The getter is pure, never fails, and delegates to `globalThis.Number`. It may
548
548
  * produce `NaN` for non-numeric inputs.
549
549
  *
550
- * **Example** (Coerce to number)
550
+ * **Example** (Coercing to a number)
551
551
  *
552
552
  * ```ts
553
553
  * import { SchemaGetter } from "effect"
@@ -576,7 +576,7 @@ export function Number() {
576
576
  *
577
577
  * The getter is pure, never fails, and delegates to `globalThis.Boolean`.
578
578
  *
579
- * **Example** (Coerce to boolean)
579
+ * **Example** (Coercing to a boolean)
580
580
  *
581
581
  * ```ts
582
582
  * import { SchemaGetter } from "effect"
@@ -604,7 +604,7 @@ export function Boolean() {
604
604
  * - Delegates to `globalThis.BigInt`.
605
605
  * - Throws at runtime if the input cannot be converted (e.g. non-numeric string).
606
606
  *
607
- * **Example** (Coerce to bigint)
607
+ * **Example** (Coercing to a bigint)
608
608
  *
609
609
  * ```ts
610
610
  * import { SchemaGetter } from "effect"
@@ -632,7 +632,7 @@ export function BigInt() {
632
632
  * - Delegates to `new globalThis.Date(input)`.
633
633
  * - Does not validate the result — may produce an invalid Date.
634
634
  *
635
- * **Example** (Coerce to Date)
635
+ * **Example** (Coercing to a Date)
636
636
  *
637
637
  * ```ts
638
638
  * import { SchemaGetter } from "effect"
@@ -656,7 +656,7 @@ export function Date() {
656
656
  *
657
657
  * - Pure, delegates to `String.trim`.
658
658
  *
659
- * **Example** (Trim whitespace)
659
+ * **Example** (Trimming whitespace)
660
660
  *
661
661
  * ```ts
662
662
  * import { SchemaGetter } from "effect"
@@ -677,7 +677,7 @@ export function trim() {
677
677
  *
678
678
  * - Pure, delegates to `String.capitalize`.
679
679
  *
680
- * **Example** (Capitalize string)
680
+ * **Example** (Capitalizing a string)
681
681
  *
682
682
  * ```ts
683
683
  * import { SchemaGetter } from "effect"
@@ -698,7 +698,7 @@ export function capitalize() {
698
698
  *
699
699
  * - Pure, delegates to `String.uncapitalize`.
700
700
  *
701
- * **Example** (Uncapitalize string)
701
+ * **Example** (Uncapitalizing a string)
702
702
  *
703
703
  * ```ts
704
704
  * import { SchemaGetter } from "effect"
@@ -719,7 +719,7 @@ export function uncapitalize() {
719
719
  *
720
720
  * - Pure, delegates to `String.snakeToCamel`.
721
721
  *
722
- * **Example** (Snake to camel)
722
+ * **Example** (Converting snake case to camel case)
723
723
  *
724
724
  * ```ts
725
725
  * import { SchemaGetter } from "effect"
@@ -742,7 +742,7 @@ export function snakeToCamel() {
742
742
  *
743
743
  * - Pure, delegates to `String.camelToSnake`.
744
744
  *
745
- * **Example** (Camel to snake)
745
+ * **Example** (Converting camel case to snake case)
746
746
  *
747
747
  * ```ts
748
748
  * import { SchemaGetter } from "effect"
@@ -765,7 +765,7 @@ export function camelToSnake() {
765
765
  *
766
766
  * - Pure, delegates to `String.toLowerCase`.
767
767
  *
768
- * **Example** (To lowercase)
768
+ * **Example** (Converting to lowercase)
769
769
  *
770
770
  * ```ts
771
771
  * import { SchemaGetter } from "effect"
@@ -788,7 +788,7 @@ export function toLowerCase() {
788
788
  *
789
789
  * - Pure, delegates to `String.toUpperCase`.
790
790
  *
791
- * **Example** (To uppercase)
791
+ * **Example** (Converting to uppercase)
792
792
  *
793
793
  * ```ts
794
794
  * import { SchemaGetter } from "effect"
@@ -831,7 +831,7 @@ export function parseJson(options) {
831
831
  * functions, symbols, or a replacer that removes the root value, that
832
832
  * `undefined` result is returned rather than converted into an `Issue`.
833
833
  *
834
- * **Example** (Stringify JSON)
834
+ * **Example** (Stringifying JSON)
835
835
  *
836
836
  * ```ts
837
837
  * import { SchemaGetter } from "effect"
@@ -867,7 +867,7 @@ export function stringifyJson(options) {
867
867
  * (default `,`) and then each pair by `keyValueSeparator` (default `=`). Pairs
868
868
  * missing a key or value are silently skipped.
869
869
  *
870
- * **Example** (Parse key-value string)
870
+ * **Example** (Parsing a key-value string)
871
871
  *
872
872
  * ```ts
873
873
  * import { SchemaGetter } from "effect"
@@ -907,7 +907,7 @@ export function splitKeyValue(options) {
907
907
  * (default `,`) and joins each key and value with `keyValueSeparator` (default
908
908
  * `=`).
909
909
  *
910
- * **Example** (Join key-value record)
910
+ * **Example** (Joining key-value records)
911
911
  *
912
912
  * ```ts
913
913
  * import { SchemaGetter } from "effect"
@@ -939,7 +939,7 @@ export function joinKeyValue(options) {
939
939
  * The getter is pure and never fails. It splits by `separator` (default `,`).
940
940
  * An empty string produces an empty array, not `[""]`.
941
941
  *
942
- * **Example** (Split comma-separated string)
942
+ * **Example** (Splitting a comma-separated string)
943
943
  *
944
944
  * ```ts
945
945
  * import { SchemaGetter } from "effect"
@@ -965,7 +965,7 @@ export function split(options) {
965
965
  *
966
966
  * The getter is pure and never fails.
967
967
  *
968
- * **Example** (Encode to Base64)
968
+ * **Example** (Encoding to Base64)
969
969
  *
970
970
  * ```ts
971
971
  * import { SchemaGetter } from "effect"
@@ -990,7 +990,7 @@ export function encodeBase64() {
990
990
  *
991
991
  * The getter is pure and never fails.
992
992
  *
993
- * **Example** (Encode to Base64Url)
993
+ * **Example** (Encoding to Base64Url)
994
994
  *
995
995
  * ```ts
996
996
  * import { SchemaGetter } from "effect"
@@ -1015,7 +1015,7 @@ export function encodeBase64Url() {
1015
1015
  *
1016
1016
  * The getter is pure and never fails.
1017
1017
  *
1018
- * **Example** (Encode to hex)
1018
+ * **Example** (Encoding to hex)
1019
1019
  *
1020
1020
  * ```ts
1021
1021
  * import { SchemaGetter } from "effect"
@@ -1039,7 +1039,7 @@ export function encodeHex() {
1039
1039
  *
1040
1040
  * - Fails with `SchemaIssue.InvalidValue` if the input is not valid Base64.
1041
1041
  *
1042
- * **Example** (Decode Base64 to bytes)
1042
+ * **Example** (Decoding Base64 to bytes)
1043
1043
  *
1044
1044
  * ```ts
1045
1045
  * import { SchemaGetter } from "effect"
@@ -1066,7 +1066,7 @@ export function decodeBase64() {
1066
1066
  *
1067
1067
  * - Fails with `SchemaIssue.InvalidValue` if the input is not valid Base64.
1068
1068
  *
1069
- * **Example** (Decode Base64 to string)
1069
+ * **Example** (Decoding Base64 to string)
1070
1070
  *
1071
1071
  * ```ts
1072
1072
  * import { SchemaGetter } from "effect"
@@ -1096,7 +1096,7 @@ export function decodeBase64String() {
1096
1096
  *
1097
1097
  * - Fails with `SchemaIssue.InvalidValue` if the input is not valid Base64Url.
1098
1098
  *
1099
- * **Example** (Decode Base64Url to bytes)
1099
+ * **Example** (Decoding Base64Url to bytes)
1100
1100
  *
1101
1101
  * ```ts
1102
1102
  * import { SchemaGetter } from "effect"
@@ -1126,7 +1126,7 @@ export function decodeBase64Url() {
1126
1126
  *
1127
1127
  * - Fails with `SchemaIssue.InvalidValue` if the input is not valid Base64Url.
1128
1128
  *
1129
- * **Example** (Decode Base64Url to string)
1129
+ * **Example** (Decoding Base64Url to string)
1130
1130
  *
1131
1131
  * ```ts
1132
1132
  * import { SchemaGetter } from "effect"
@@ -1156,7 +1156,7 @@ export function decodeBase64UrlString() {
1156
1156
  *
1157
1157
  * - Fails with `SchemaIssue.InvalidValue` if the input is not valid hex.
1158
1158
  *
1159
- * **Example** (Decode hex to bytes)
1159
+ * **Example** (Decoding hex to bytes)
1160
1160
  *
1161
1161
  * ```ts
1162
1162
  * import { SchemaGetter } from "effect"
@@ -1186,7 +1186,7 @@ export function decodeHex() {
1186
1186
  *
1187
1187
  * - Fails with `SchemaIssue.InvalidValue` if the input is not valid hex.
1188
1188
  *
1189
- * **Example** (Decode hex to string)
1189
+ * **Example** (Decoding hex to string)
1190
1190
  *
1191
1191
  * ```ts
1192
1192
  * import { SchemaGetter } from "effect"
@@ -1218,7 +1218,7 @@ export function decodeHexString() {
1218
1218
  * - May throw a `URIError` for malformed surrogate pairs; this exception is not
1219
1219
  * converted into an `Issue`.
1220
1220
  *
1221
- * **Example** (Encode a URI component)
1221
+ * **Example** (Encoding a URI component)
1222
1222
  *
1223
1223
  * ```ts
1224
1224
  * import { SchemaGetter } from "effect"
@@ -1241,7 +1241,7 @@ export function encodeUriComponent() {
1241
1241
  *
1242
1242
  * - Fails with `SchemaIssue.InvalidValue` if the input contains malformed percent-encoding sequences.
1243
1243
  *
1244
- * **Example** (Decode a URI component)
1244
+ * **Example** (Decoding a URI component)
1245
1245
  *
1246
1246
  * ```ts
1247
1247
  * import { SchemaGetter } from "effect"
@@ -1283,7 +1283,7 @@ export function decodeUriComponent() {
1283
1283
  * - Fails with `SchemaIssue.InvalidValue` if the input cannot be parsed as a valid
1284
1284
  * `DateTime`.
1285
1285
  *
1286
- * **Example** (Parse DateTime)
1286
+ * **Example** (Parsing DateTime)
1287
1287
  *
1288
1288
  * ```ts
1289
1289
  * import { SchemaGetter } from "effect"
@@ -1321,7 +1321,7 @@ export function dateTimeUtcFromInput() {
1321
1321
  * `user[name]` and `items[0]` to build nested objects or arrays, and each leaf
1322
1322
  * value is a `string` or `Blob`.
1323
1323
  *
1324
- * **Example** (Decode FormData)
1324
+ * **Example** (Decoding FormData)
1325
1325
  *
1326
1326
  * ```ts
1327
1327
  * import { SchemaGetter } from "effect"
@@ -1355,7 +1355,7 @@ const collectFormDataEntries = /*#__PURE__*/collectBracketPathEntries(value => t
1355
1355
  * bracket-path keys such as `user[name]` and `items[0]`. Non-object inputs
1356
1356
  * produce an empty `FormData`.
1357
1357
  *
1358
- * **Example** (Encode to FormData)
1358
+ * **Example** (Encoding to FormData)
1359
1359
  *
1360
1360
  * ```ts
1361
1361
  * import { SchemaGetter } from "effect"
@@ -1397,7 +1397,7 @@ export function encodeFormData() {
1397
1397
  * `user[name]` and `items[0]` to build nested objects or arrays, and each leaf
1398
1398
  * value is a `string`.
1399
1399
  *
1400
- * **Example** (Decode URLSearchParams)
1400
+ * **Example** (Decoding URLSearchParams)
1401
1401
  *
1402
1402
  * ```ts
1403
1403
  * import { SchemaGetter } from "effect"
@@ -1430,7 +1430,7 @@ const collectURLSearchParamsEntries = /*#__PURE__*/collectBracketPathEntries(Pre
1430
1430
  * The getter is pure and never fails. It flattens nested objects or arrays into
1431
1431
  * bracket-path keys. Non-object inputs produce an empty `URLSearchParams`.
1432
1432
  *
1433
- * **Example** (Encode to URLSearchParams)
1433
+ * **Example** (Encoding to URLSearchParams)
1434
1434
  *
1435
1435
  * ```ts
1436
1436
  * import { SchemaGetter } from "effect"
@@ -1489,7 +1489,7 @@ function bracketPathToTokens(bracketPath) {
1489
1489
  * - `""` → real empty key
1490
1490
  * - Duplicate keys for the same path are merged into arrays.
1491
1491
  *
1492
- * **Example** (Build tree from bracket paths)
1492
+ * **Example** (Building a tree from bracket paths)
1493
1493
  *
1494
1494
  * ```ts
1495
1495
  * import { SchemaGetter } from "effect"
@@ -1573,7 +1573,7 @@ export function makeTreeRecord(bracketPathEntries) {
1573
1573
  * (e.g. `tags=a&tags=b`). Otherwise uses indexed bracket paths (e.g. `items[0]`, `items[1]`).
1574
1574
  * - Non-leaf values that aren't objects or arrays are silently skipped.
1575
1575
  *
1576
- * **Example** (Flatten object to bracket paths)
1576
+ * **Example** (Flattening an object to bracket paths)
1577
1577
  *
1578
1578
  * ```ts
1579
1579
  * import { Predicate, SchemaGetter } from "effect"
@@ -384,7 +384,7 @@ export declare class Composite extends Base {
384
384
  * `Option.none()` when no value was provided.
385
385
  * - The default formatter renders this as `"Expected <type>, got <actual>"`.
386
386
  *
387
- * **Example** (Formatted output)
387
+ * **Example** (Formatting output)
388
388
  *
389
389
  * ```ts
390
390
  * import { Schema } from "effect"
@@ -441,7 +441,7 @@ export declare class InvalidType extends Base {
441
441
  * - The default formatter renders this as `"Invalid data <actual>"` unless a
442
442
  * custom `message` annotation is provided.
443
443
  *
444
- * **Example** (Custom filter returning InvalidValue)
444
+ * **Example** (Returning InvalidValue from a custom filter)
445
445
  *
446
446
  * ```ts
447
447
  * import { Option, SchemaIssue } from "effect"
@@ -714,7 +714,7 @@ export type LeafHook = (issue: Leaf) => string;
714
714
  * - `Forbidden` → `"Forbidden operation"`
715
715
  * - `OneOf` → `"Expected exactly one member to match the input <actual>"`
716
716
  *
717
- * **Example** (Using defaultLeafHook with Standard Schema formatter)
717
+ * **Example** (Formatting Standard Schema issues with defaultLeafHook)
718
718
  *
719
719
  * ```ts
720
720
  * import { SchemaIssue } from "effect"
@@ -359,7 +359,7 @@ export class Composite extends Base {
359
359
  * `Option.none()` when no value was provided.
360
360
  * - The default formatter renders this as `"Expected <type>, got <actual>"`.
361
361
  *
362
- * **Example** (Formatted output)
362
+ * **Example** (Formatting output)
363
363
  *
364
364
  * ```ts
365
365
  * import { Schema } from "effect"
@@ -420,7 +420,7 @@ export class InvalidType extends Base {
420
420
  * - The default formatter renders this as `"Invalid data <actual>"` unless a
421
421
  * custom `message` annotation is provided.
422
422
  *
423
- * **Example** (Custom filter returning InvalidValue)
423
+ * **Example** (Returning InvalidValue from a custom filter)
424
424
  *
425
425
  * ```ts
426
426
  * import { Option, SchemaIssue } from "effect"
@@ -737,7 +737,7 @@ export function make(input, ast, out) {
737
737
  * - `Forbidden` → `"Forbidden operation"`
738
738
  * - `OneOf` → `"Expected exactly one member to match the input <actual>"`
739
739
  *
740
- * **Example** (Using defaultLeafHook with Standard Schema formatter)
740
+ * **Example** (Formatting Standard Schema issues with defaultLeafHook)
741
741
  *
742
742
  * ```ts
743
743
  * import { SchemaIssue } from "effect"