Update docs
Some checks failed
Lint / lint (push) Failing after 12s
Publish / publish (push) Failing after 12s

This commit is contained in:
Julien Valverdé
2026-03-25 02:18:11 +01:00
parent dbb7ae3aef
commit 1d3a36a412

View File

@@ -151,3 +151,12 @@ yield* Lens.set(
``` ```
Currently available: Currently available:
| Name | Description | Parent state mutation behavior | Notes |
| - | - | - | - |
| `Lens.focusField` | Focuses to the field of an object. Replaces the parent object immutably when writing to the focused field | Immutable | |
| `Lens.focusMutableField` | Focuses to the field of an object. Mutates the parent object in place via the writable field | Mutable | Type-safe: will not allow you to mutate `readonly` fields |
| `Lens.focusArrayAt` | Focuses to an indexed entry of an array. Replaces the parent array immutably when writing to the focused index | Immutable | |
| `Lens.focusMutableArrayAt` | Focuses to an indexed entry of an array. Mutates the parent array in place at the focused index | Mutable | Type-safe: will not allow you to mutate `readonly` arrays |
| `Lens.focusChunkAt` | Focuses to an indexed entry of a `Chunk`. Replaces the parent `Chunk` immutably when writing to the focused element | Immutable | |
Also more to come!