effect-io-ai

Package: effect
Module: Exit

Exit.map

Maps over the Success value of the specified exit using the provided function.

Signature

declare const map: { <A, B>(f: (a: A) => B): <E>(self: Exit<A, E>) => Exit<B, E>; <A, E, B>(self: Exit<A, E>, f: (a: A) => B): Exit<B, E>; }

Source

Since v2.0.0