fix(common): add params and reportProgress options to HttpClient.put() overload (#37873)

When the response type is JSON, the `put()` overload signature did not have `reportProgress`
and  `params` options. This makes it difficult to type-check this overload.

This commit adds them to the overload signature.

Fixes #23600

PR Close #37873
This commit is contained in:
Ajit Singh
2020-07-18 17:28:37 +05:30
committed by Andrew Kushnir
parent 129107191c
commit dd8d8c8289
2 changed files with 6 additions and 0 deletions

View File

@ -1177,6 +1177,10 @@ export declare class HttpClient {
[header: string]: string | string[];
};
observe: 'events';
params?: HttpParams | {
[param: string]: string | string[];
};
reportProgress?: boolean;
responseType?: 'json';
withCredentials?: boolean;
}): Observable<HttpEvent<T>>;