effect-io-ai

Package: effect
Module: STM

STM.as

Maps the success value of this effect to the specified constant value.

Signature

declare const as: { <A2>(value: A2): <A, E, R>(self: STM<A, E, R>) => STM<A2, E, R>; <A, E, R, A2>(self: STM<A, E, R>, value: A2): STM<A2, E, R>; }

Source

Since v2.0.0