From ebbdadb4b6bd59e57b0eec8e280c7c5c12453167 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Wed, 14 Sep 2016 15:55:10 +0200
Subject: sort out libs / fix warnings

---
 pages/confirm-create-reserve.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'pages/confirm-create-reserve.tsx')

diff --git a/pages/confirm-create-reserve.tsx b/pages/confirm-create-reserve.tsx
index 667323044..0a509118d 100644
--- a/pages/confirm-create-reserve.tsx
+++ b/pages/confirm-create-reserve.tsx
@@ -189,7 +189,7 @@ class Controller {
 }
 
 function view(ctrl: Controller): any {
-  function* f() {
+  function* f(): IterableIterator<any> {
     yield m("p",
             i18n.parts`You are about to withdraw ${m("strong", amountToPretty(
               ctrl.amount))} from your bank account into your wallet.`);
@@ -374,8 +374,8 @@ export function main() {
   getSuggestedExchange(amount.currency)
     .then((suggestedExchangeUrl) => {
       const controller = function () { return new Controller(suggestedExchangeUrl, amount, callback_url, wt_types); };
-      var ExchangeSelection = {controller, view};
-      m.mount(document.getElementById("exchange-selection"), ExchangeSelection);
+      const ExchangeSelection = {controller, view};
+      m.mount(document.getElementById("exchange-selection")!, ExchangeSelection);
     })
     .catch((e) => {
       // TODO: provide more context information, maybe factor it out into a
-- 
cgit v1.2.3

