/** * Executes this effect, skipping the error but returning optionally the * success. * * @tsplus getter effect/core/io/Effect option */ export function option(self: Effect): Effect> { return self.foldEffect( () => Effect.succeed(Maybe.none), (a) => Effect.succeed(Maybe.some(a)) ) }