From 5c18f23788ebd25e096d1030c913b1edfb0d39b5 Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Wed, 5 Jun 2019 13:36:06 +0530 Subject: [PATCH] fix(common): expose the `HttpUploadProgressEvent` interface as public API (#30852) Fixes #30814 PR Close #30852 --- packages/common/http/public_api.ts | 2 +- packages/common/http/src/response.ts | 2 +- tools/public_api_guard/common/http.d.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/common/http/public_api.ts b/packages/common/http/public_api.ts index 9975cfc8f5..aa86627000 100644 --- a/packages/common/http/public_api.ts +++ b/packages/common/http/public_api.ts @@ -14,6 +14,6 @@ export {JsonpClientBackend, JsonpInterceptor} from './src/jsonp'; export {HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpInterceptingHandler as ɵHttpInterceptingHandler} from './src/module'; export {HttpParameterCodec, HttpParams, HttpUrlEncodingCodec} from './src/params'; export {HttpRequest} from './src/request'; -export {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpResponseBase, HttpSentEvent, HttpUserEvent} from './src/response'; +export {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpResponseBase, HttpSentEvent, HttpUploadProgressEvent, HttpUserEvent} from './src/response'; export {HttpXhrBackend, XhrFactory} from './src/xhr'; export {HttpXsrfTokenExtractor} from './src/xsrf'; diff --git a/packages/common/http/src/response.ts b/packages/common/http/src/response.ts index d8acc33ca4..35af00813d 100644 --- a/packages/common/http/src/response.ts +++ b/packages/common/http/src/response.ts @@ -87,7 +87,7 @@ export interface HttpDownloadProgressEvent extends HttpProgressEvent { /** * An upload progress event. * - * + * @publicApi */ export interface HttpUploadProgressEvent extends HttpProgressEvent { type: HttpEventType.UploadProgress; diff --git a/tools/public_api_guard/common/http.d.ts b/tools/public_api_guard/common/http.d.ts index e416f98bfa..b82636b302 100644 --- a/tools/public_api_guard/common/http.d.ts +++ b/tools/public_api_guard/common/http.d.ts @@ -1694,6 +1694,10 @@ export interface HttpSentEvent { type: HttpEventType.Sent; } +export interface HttpUploadProgressEvent extends HttpProgressEvent { + type: HttpEventType.UploadProgress; +} + export declare class HttpUrlEncodingCodec implements HttpParameterCodec { decodeKey(key: string): string; decodeValue(value: string): string;