Fix
All checks were successful
Lint / lint (push) Successful in 14s

This commit is contained in:
Julien Valverdé
2026-03-24 10:13:29 +01:00
parent 74dd87f4ea
commit 34b9452c1c

View File

@@ -139,7 +139,7 @@ export const mapEffect: {
)), )),
})) }))
export const mapStructAt: { export const mapStructField: {
<A extends object, K extends keyof A, ER, EW, RR, RW>( <A extends object, K extends keyof A, ER, EW, RR, RW>(
self: Lens<A, ER, EW, RR, RW>, self: Lens<A, ER, EW, RR, RW>,
key: K, key: K,
@@ -296,11 +296,11 @@ Effect.gen(function*() {
const myValueLens = ref.pipe( const myValueLens = ref.pipe(
fromSubscriptionRef, fromSubscriptionRef,
mapStructAt("values"), mapStructField("values"),
mapArrayAt(1), mapArrayAt(1),
) )
const myValueLens2 = mapArrayAt(mapStructAt(fromSubscriptionRef(ref), "values"), 1) const myValueLens2 = mapArrayAt(mapStructField(fromSubscriptionRef(ref), "values"), 1)
console.log(yield* ref.get, yield* myValueLens.get) console.log(yield* ref.get, yield* myValueLens.get)
yield* set(myValueLens, 22) yield* set(myValueLens, 22)