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
4
goldens/public-api/common/http/http.d.ts
vendored
4
goldens/public-api/common/http/http.d.ts
vendored
@ -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>>;
|
||||
|
Reference in New Issue
Block a user