From 41e8685f3687c229abc51085b4a941118ef624bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Mon, 30 Mar 2026 14:11:01 +0200 Subject: [PATCH] Fix --- packages/effect-lens/src/Lens.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/effect-lens/src/Lens.ts b/packages/effect-lens/src/Lens.ts index f265eee..bdb5ffe 100644 --- a/packages/effect-lens/src/Lens.ts +++ b/packages/effect-lens/src/Lens.ts @@ -274,14 +274,14 @@ export const mapStream: { * Narrows the focus to a field of an object. Replaces the object in an immutable fashion when written to. */ export const focusObjectField: { - ( + ( self: Lens, key: K, ): Lens - ( + ( key: K, ): (self: Lens) => Lens -} = Function.dual(2, ( +} = Function.dual(2, ( self: Lens, key: K, ): Lens => map( @@ -307,14 +307,14 @@ export declare namespace focusObjectMutableField { * Narrows the focus to a mutable field of an object. Mutates the object in place when written to. */ export const focusObjectMutableField: { - , ER, EW, RR, RW>( + >( self: Lens, key: K, ): Lens - , ER, EW, RR, RW>( + >( key: K, ): (self: Lens) => Lens -} = Function.dual(2, , ER, EW, RR, RW>( +} = Function.dual(2, >( self: Lens, key: K, ): Lens => map(self, a => a[key], (a, b) => { a[key] = b; return a })) @@ -366,14 +366,14 @@ export const focusMutableArrayAt: { * Narrows the focus to an indexed element of a readonly tuple. Replaces the tuple in an immutable fashion when written to. */ export const focusTupleAt: { - ( + ( self: Lens, index: I, ): Lens - ( + ( index: I ): (self: Lens) => Lens -} = Function.dual(2, ( +} = Function.dual(2, ( self: Lens, index: I, ): Lens => map( @@ -386,14 +386,14 @@ export const focusTupleAt: { * Narrows the focus to an indexed element of a mutable tuple. Mutates the tuple in place when written to. */ export const focusMutableTupleAt: { - ( + ( self: Lens, index: I, ): Lens - ( + ( index: I ): (self: Lens) => Lens -} = Function.dual(2, ( +} = Function.dual(2, ( self: Lens, index: I, ): Lens => map(