From 1fc5c8dacec207b5bcc6b078cba5d3047f897a02 Mon Sep 17 00:00:00 2001 From: Chancellor Clark Date: Wed, 6 May 2020 17:07:07 -0500 Subject: [PATCH] fix(common): CHP-6487 remove explicit unknown generic types --- src/request-sender.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/request-sender.ts b/src/request-sender.ts index bcf2fd7..b0415ce 100644 --- a/src/request-sender.ts +++ b/src/request-sender.ts @@ -22,7 +22,7 @@ export default class RequestSender { this._cache = this._options.cache || new DefaultCache(); } - sendRequest(url: string, options?: RequestOptions): Promise> { + sendRequest(url: string, options?: RequestOptions): Promise> { const requestOptions = this._mergeDefaultOptions(url, options); const cachedRequest = this._getCachedRequest(url, requestOptions); @@ -62,23 +62,23 @@ export default class RequestSender { }); } - get(url: string, options?: RequestOptions): Promise> { + get(url: string, options?: RequestOptions): Promise> { return this.sendRequest(url, { ...options, method: 'GET' }); } - post(url: string, options?: RequestOptions): Promise> { + post(url: string, options?: RequestOptions): Promise> { return this.sendRequest(url, { ...options, method: 'POST' }); } - put(url: string, options?: RequestOptions): Promise> { + put(url: string, options?: RequestOptions): Promise> { return this.sendRequest(url, { ...options, method: 'PUT' }); } - patch(url: string, options?: RequestOptions): Promise> { + patch(url: string, options?: RequestOptions): Promise> { return this.sendRequest(url, { ...options, method: 'PATCH' }); } - delete(url: string, options?: RequestOptions): Promise> { + delete(url: string, options?: RequestOptions): Promise> { return this.sendRequest(url, { ...options, method: 'DELETE' }); }