Skip to content

Commit

Permalink
fix(common): expose the HttpUploadProgressEvent interface as public…
Browse files Browse the repository at this point in the history
… API (#30852)

Fixes #30814

PR Close #30852
  • Loading branch information
santoshyadavdev authored and mhevery committed Jun 7, 2019
1 parent 9ace748 commit 4e8614b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common/http/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 1 addition & 1 deletion packages/common/http/src/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface HttpDownloadProgressEvent extends HttpProgressEvent {
/**
* An upload progress event.
*
*
* @publicApi
*/
export interface HttpUploadProgressEvent extends HttpProgressEvent {
type: HttpEventType.UploadProgress;
Expand Down
4 changes: 4 additions & 0 deletions tools/public_api_guard/common/http.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e8614b

Please sign in to comment.