effect-io-ai

Package: effect
Module: Exit

Exit.as

Maps the Success value of the specified exit to the provided constant value.

Signature

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

Source

Since v2.0.0