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:

committed by
Andrew Kushnir

parent
129107191c
commit
dd8d8c8289
@ -2448,6 +2448,8 @@ export class HttpClient {
|
||||
*/
|
||||
put<T>(url: string, body: any|null, options: {
|
||||
headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',
|
||||
params?: HttpParams|{[param: string]: string | string[]},
|
||||
reportProgress?: boolean,
|
||||
responseType?: 'json',
|
||||
withCredentials?: boolean,
|
||||
}): Observable<HttpEvent<T>>;
|
||||
|
Reference in New Issue
Block a user