Refactor
Lint / lint (push) Failing after 9s

This commit is contained in:
Julien Valverdé
2026-05-24 19:24:23 +02:00
parent b02ca29b76
commit b751d001c9
+6 -14
View File
@@ -127,19 +127,11 @@ extends Pipeable.Class() implements Lens<A, ER, EW, RR, RW> {
export declare namespace LensLazyImpl { export declare namespace LensLazyImpl {
export interface Source< export interface Source<in out B, in out ESW = never, in out ESR = never, in out RSR = never, in out RSW = never> {
in out B,
in out EW = never,
in out ESW = never,
in out ESR = never,
in out RSR = never,
in out RW = never,
in out RSW = never,
> {
readonly sourceGet: Effect.Effect<B, ESR, RSR> readonly sourceGet: Effect.Effect<B, ESR, RSR>
readonly sourceChanges: Stream.Stream<B, ESR, RSR> readonly sourceChanges: Stream.Stream<B, ESR, RSR>
readonly sourceCommit: (b: B) => Effect.Effect<void, ESW, RSW> readonly sourceCommit: (b: B) => Effect.Effect<void, ESW, RSW>
readonly withLock: <A1, E1, R1>(self: Effect.Effect<A1, E1, R1>) => Effect.Effect<A1, EW | E1, RW | R1> readonly withLock: <A1, E1, R1>(self: Effect.Effect<A1, E1, R1>) => Effect.Effect<A1, E1, R1>
} }
} }
@@ -157,7 +149,7 @@ export class LensLazyImpl<
> >
extends LensImpl<A, B, ER, ESR, EW, ESW, RR, RSR, RW, RSW> { extends LensImpl<A, B, ER, ESR, EW, ESW, RR, RSR, RW, RSW> {
constructor( constructor(
readonly source: LensLazyImpl.Source<B, EW, ESW, ESR, RSR, RW, RSW> readonly source: LensLazyImpl.Source<B, ESW, ESR, RSR, RSW>
) { ) {
super() super()
} }
@@ -178,9 +170,9 @@ extends LensImpl<A, B, ER, ESR, EW, ESW, RR, RSR, RW, RSW> {
/** /**
* Creates a `Lens` by supplying how to read the current value, observe changes, and apply transformations. * Creates a `Lens` by supplying how to read the current value, observe changes, and apply transformations.
*/ */
export const makeLazy = <A, ER, EW, RR, RW>( export const makeLazy = <B, ESW, ESR, RSR, RSW>(
source: LensLazyImpl.Source<A, ER, EW, RR, RW> source: LensLazyImpl.Source<B, ESW, ESR, RSR, RSW>
): Lens<A, ER, EW, RR, RW> => new LensLazyImpl(source) ): Lens<B, ESW, ESR, RSR, RSW> => new LensLazyImpl(source)
export declare namespace SynchronizedRefLensImpl { export declare namespace SynchronizedRefLensImpl {