Add asSubscribable helper
Lint / lint (push) Successful in 15s

This commit is contained in:
Julien Valverdé
2026-06-21 00:21:17 +02:00
parent 3893723845
commit fdb2bbfd00
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -120,6 +120,10 @@ export const asLensImpl = <A, ER, EW, RR, RW>(
return lens as LensImpl<A, ER, EW, RR, RW>
}
export const asSubscribable = <A, ER, EW, RR, RW>(
lens: Lens<A, ER, EW, RR, RW>
): Subscribable.Subscribable<A, ER, RR> => lens
export declare namespace LensLazyImpl {
export interface Source<in out A, in out ER = never, in out EW = never, in out RR = never, in out RW = never> {
+4
View File
@@ -83,6 +83,10 @@ export const asLensImpl = <A, ER, EW, RR, RW>(
return lens as LensImpl<A, ER, EW, RR, RW>
}
export const asSubscribable = <A, ER, EW, RR, RW>(
lens: Lens<A, ER, EW, RR, RW>
): Subscribable.Subscribable<A, ER, RR> => lens
export declare namespace LensLazyImpl {
export interface Source<in out A, in out ER = never, in out EW = never, in out RR = never, in out RW = never> {