summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util/http.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2020-12-14 16:45:15 +0100
committerFlorian Dold <florian@dold.me>2020-12-14 16:45:15 +0100
commitf332d61fb68fbc394f31337ddeb7d1fc114772d0 (patch)
treeeeb9e7dd527ab7efcaa7812f4440e8901185e9aa /packages/taler-wallet-core/src/util/http.ts
parentc4b44a51097e67a357b490adf407f1a6afb0d8ee (diff)
downloadwallet-core-f332d61fb68fbc394f31337ddeb7d1fc114772d0.tar.gz
wallet-core-f332d61fb68fbc394f31337ddeb7d1fc114772d0.tar.bz2
wallet-core-f332d61fb68fbc394f31337ddeb7d1fc114772d0.zip
formatting pass
Diffstat (limited to 'packages/taler-wallet-core/src/util/http.ts')
-rw-r--r--packages/taler-wallet-core/src/util/http.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/util/http.ts b/packages/taler-wallet-core/src/util/http.ts
index 1ec9c2f50..4b0a8e75a 100644
--- a/packages/taler-wallet-core/src/util/http.ts
+++ b/packages/taler-wallet-core/src/util/http.ts
@@ -17,7 +17,7 @@
/**
* Helpers for doing XMLHttpRequest-s that are based on ES6 promises.
* Allows for easy mocking for test cases.
- *
+ *
* The API is inspired by the HTML5 fetch API.
*/
@@ -91,7 +91,7 @@ export class Headers {
toJSON(): any {
const m: Record<string, string> = {};
- this.headerMap.forEach((v, k) => m[k] = v);
+ this.headerMap.forEach((v, k) => (m[k] = v));
return m;
}
}
@@ -120,10 +120,7 @@ export interface HttpRequestLibrary {
/**
* Make an HTTP POST request with a JSON body.
*/
- fetch(
- url: string,
- opt?: HttpRequestOptions,
- ): Promise<HttpResponse>;
+ fetch(url: string, opt?: HttpRequestOptions): Promise<HttpResponse>;
}
type TalerErrorResponse = {