mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(common): expose the HttpUploadProgressEvent interface as public API (#30852)
Fixes #30814 PR Close #30852
This commit is contained in:
committed by
Misko Hevery
parent
9ace748d3a
commit
4e8614bb92
@@ -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';
|
||||
|
||||
@@ -87,7 +87,7 @@ export interface HttpDownloadProgressEvent extends HttpProgressEvent {
|
||||
/**
|
||||
* An upload progress event.
|
||||
*
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface HttpUploadProgressEvent extends HttpProgressEvent {
|
||||
type: HttpEventType.UploadProgress;
|
||||
|
||||
+4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user