diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-09-12 17:41:12 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-09-12 17:41:12 +0200 |
commit | e3cc9c59bcc36eee8c3234574cfdfda3f5eea658 (patch) | |
tree | 0ed42f9ba86b9e5da350d243e1afdb61ab6ab78b /lib/shopApi.ts | |
parent | 17581b946d97e88a168bbf9f388e83300d593c1d (diff) | |
download | wallet-core-e3cc9c59bcc36eee8c3234574cfdfda3f5eea658.tar.xz |
stricter type checking
Diffstat (limited to 'lib/shopApi.ts')
-rw-r--r-- | lib/shopApi.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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); |