fix: fix various typos

This commit is contained in:
Wieland Schöbl
2021-05-21 15:35:26 +02:00
parent 1d94dd5bf3
commit ad0dae46ff
16 changed files with 49 additions and 49 deletions

View File

@@ -17,12 +17,12 @@ import {Injectable} from '@angular/core';
import {HttpClientInterface, HttpClientRequest} from '@openstapps/api/lib/http-client-interface';
/**
* HttpClient that is based on angular's HttpClient (@TODO: move it to provider or independent package)
* HttpClient that is based on the Angular HttpClient (@TODO: move it to provider or independent package)
*/
@Injectable()
export class StAppsWebHttpClient implements HttpClientInterface {
/**
*
*
* @param http TODO
*/
constructor(private readonly http: HttpClient) {
@@ -39,7 +39,7 @@ export class StAppsWebHttpClient implements HttpClientInterface {
/**
* TODO
*/
[key: string]: any;
[key: string]: unknown;
/**
* TODO
*/
@@ -63,6 +63,7 @@ export class StAppsWebHttpClient implements HttpClientInterface {
requestConfig.method || 'GET', requestConfig.url.toString(), options)
.toPromise();
// tslint:disable-next-line:prefer-object-spread
return Object.assign(response, {statusCode: response.status, body: response.body || {}});
} catch (err) {
throw Error(err);