/** * Requires the option produced by this value to be `None`. * * @tsplus getter effect/core/io/Effect none */ export function none(self: Effect>): Effect, void> { return self.foldEffect( (e) => Effect.fail(Maybe.some(e)), (option) => option.fold(Effect.succeed(undefined), () => Effect.fail(Maybe.none)) ) }