fix: 修订了部分 API 文档

This commit is contained in:
Zhicheng WANG 2019-06-05 07:43:23 +08:00
parent 9d1a89a77f
commit b813974ef6

View File

@ -87,9 +87,6 @@ export type HttpObserve = 'body' | 'events' | 'response';
* .pipe(catchError(this.handleError('patchHero'))); * .pipe(catchError(this.handleError('patchHero')));
* } * }
* ``` * ```
*
* `HttpClient` HTTP
* `observe` `responseType`
* *
* @publicApi * @publicApi
*/ */
@ -100,9 +97,11 @@ export class HttpClient {
/** /**
* Sends an `HTTPRequest` and returns a stream of `HTTPEvents`. * Sends an `HTTPRequest` and returns a stream of `HTTPEvents`.
* *
* `HttpRequest` `HTTPEvents`
*
* @return An `Observable` of the response, with the response body as a stream of `HTTPEvents`. * @return An `Observable` of the response, with the response body as a stream of `HTTPEvents`.
* *
* `HttpRequest` `HTTPEvents` * `Observable` `HTTPEvents`
*/ */
request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>; request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;