0.2.5 #43
@@ -6,7 +6,11 @@ export const LensTypeId: unique symbol = Symbol.for("@effect-fc/Lens/Lens")
|
|||||||
export type LensTypeId = typeof LensTypeId
|
export type LensTypeId = typeof LensTypeId
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read/write view over a value that exposes the latest value and a stream of updates.
|
* A bidirectional view into some shared state that exposes:
|
||||||
|
*
|
||||||
|
* 1. a `get` effect for reading the current value of type `A`,
|
||||||
|
* 2. a `changes` stream that emits every subsequent update to `A`, and
|
||||||
|
* 3. a `modify` effect that can transform the current value.
|
||||||
*/
|
*/
|
||||||
export interface Lens<in out A, in out ER = never, in out EW = never, in out RR = never, in out RW = never>
|
export interface Lens<in out A, in out ER = never, in out EW = never, in out RR = never, in out RW = never>
|
||||||
extends Subscribable.Subscribable<A, ER, RR> {
|
extends Subscribable.Subscribable<A, ER, RR> {
|
||||||
|
|||||||
Reference in New Issue
Block a user