From e3cc9c59bcc36eee8c3234574cfdfda3f5eea658 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 12 Sep 2016 17:41:12 +0200 Subject: stricter type checking --- lib/shopApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/shopApi.ts') diff --git a/lib/shopApi.ts b/lib/shopApi.ts index 8179ff14d..7cc37a9db 100644 --- a/lib/shopApi.ts +++ b/lib/shopApi.ts @@ -24,7 +24,7 @@ -function subst(url: string, H_contract) { +function subst(url: string, H_contract: string) { url = url.replace("${H_contract}", H_contract); url = url.replace("${$}", "$"); return url; @@ -138,7 +138,7 @@ export function fetchPayment(H_contract: any, offering_url: any) { * Offer a contract to the wallet after * downloading it from the given URL. */ -function offerContractFrom(url) { +function offerContractFrom(url: string) { var contract_request = new XMLHttpRequest(); console.log("downloading contract from '" + url + "'"); contract_request.open("GET", url, true); -- cgit v1.2.3