@@ -2528,8 +2528,8 @@ export class HttpClient {
2528
2528
} ) : Observable < HttpResponse < Object > > ;
2529
2529
2530
2530
/**
2531
- * Constructs a `PUT` request that interprets the body as a JSON object and returns the full HTTP
2532
- * response.
2531
+ * Constructs a `PUT` request that interprets the body as an instance of the requested type and
2532
+ * returns the full HTTP response.
2533
2533
*
2534
2534
* @param url The endpoint URL.
2535
2535
* @param body The resources to add/update.
@@ -2547,14 +2547,14 @@ export class HttpClient {
2547
2547
} ) : Observable < HttpResponse < T > > ;
2548
2548
2549
2549
/**
2550
- * Constructs a `PUT` request that interprets the body as a JSON object and returns the response
2551
- * body as a JSON object.
2550
+ * Constructs a `PUT` request that interprets the body as a JSON object
2551
+ * and returns an observable of JSON object.
2552
2552
*
2553
2553
* @param url The endpoint URL.
2554
2554
* @param body The resources to add/update.
2555
2555
* @param options HTTP options
2556
2556
*
2557
- * @return An `Observable` of the response, with the response body as a JSON object.
2557
+ * @return An `Observable` of the response as a JSON object.
2558
2558
*/
2559
2559
put ( url : string , body : any | null , options ?: {
2560
2560
headers ?: HttpHeaders | { [ header : string ] : string | string [ ] } ,
@@ -2566,15 +2566,14 @@ export class HttpClient {
2566
2566
} ) : Observable < Object > ;
2567
2567
2568
2568
/**
2569
- * Constructs a `PUT` request that interprets the body as a JSON object
2570
- * and returns an observable of the response .
2569
+ * Constructs a `PUT` request that interprets the body as an instance of the requested type
2570
+ * and returns an observable of the requested type .
2571
2571
*
2572
2572
* @param url The endpoint URL.
2573
2573
* @param body The resources to add/update.
2574
2574
* @param options HTTP options
2575
2575
*
2576
- * @return An `Observable` of the `HTTPResponse` for the request, with a response body in the
2577
- * requested type.
2576
+ * @return An `Observable` of the requested type.
2578
2577
*/
2579
2578
put < T > ( url : string , body : any | null , options ?: {
2580
2579
headers ?: HttpHeaders | { [ header : string ] : string | string [ ] } ,
0 commit comments