@zio.dev/zio-blocks 0.0.21 → 0.0.22
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.
- package/index.md +49 -29
- package/package.json +1 -1
- package/path-interpolator.md +24 -23
- package/reference/codec.md +384 -0
- package/reference/docs.md +1 -1
- package/reference/dynamic-optic.md +392 -0
- package/reference/formats.md +68 -12
- package/reference/json-schema.md +13 -10
- package/reference/lazy.md +361 -0
- package/reference/modifier.md +340 -0
- package/reference/syntax.md +11 -11
- package/reference/type-class-derivation.md +1959 -0
- package/scope.md +230 -232
- package/sidebars.js +6 -1
package/reference/syntax.md
CHANGED
|
@@ -394,16 +394,16 @@ The API is the same—just import `zio.blocks.schema._` and the appropriate synt
|
|
|
394
394
|
|
|
395
395
|
## Method Reference
|
|
396
396
|
|
|
397
|
-
| Method
|
|
398
|
-
|
|
399
|
-
| `toJson`
|
|
400
|
-
| `toJsonString`
|
|
401
|
-
| `toJsonBytes`
|
|
402
|
-
| `fromJson[A]`
|
|
403
|
-
| `fromJson[A]`
|
|
404
|
-
| `show`
|
|
405
|
-
| `diff`
|
|
406
|
-
| `applyPatch`
|
|
407
|
-
| `applyPatchStrict` | `A`
|
|
397
|
+
| Method | Receiver | Return Type | Description |
|
|
398
|
+
|--------------------|---------------|--------------------------|--------------------------------|
|
|
399
|
+
| `toJson` | `A` | `Json` | Convert to JSON AST |
|
|
400
|
+
| `toJsonString` | `A` | `String` | Convert to JSON string |
|
|
401
|
+
| `toJsonBytes` | `A` | `Array[Byte]` | Convert to UTF-8 bytes |
|
|
402
|
+
| `fromJson[A]` | `String` | `Either[SchemaError, A]` | Parse JSON string |
|
|
403
|
+
| `fromJson[A]` | `Array[Byte]` | `Either[SchemaError, A]` | Parse JSON bytes |
|
|
404
|
+
| `show` | `A` | `String` | Pretty-print via DynamicValue |
|
|
405
|
+
| `diff` | `A` | `Patch[A]` | Compute patch to another value |
|
|
406
|
+
| `applyPatch` | `A` | `A` | Apply patch (lenient) |
|
|
407
|
+
| `applyPatchStrict` | `A` | `Either[SchemaError, A]` | Apply patch (strict) |
|
|
408
408
|
|
|
409
409
|
All methods require an implicit/given `Schema[A]` in scope.
|