diff --git a/goldens/public-api/common/http/http.d.ts b/goldens/public-api/common/http/http.d.ts index 668d6c76a7..83b1daa7b8 100644 --- a/goldens/public-api/common/http/http.d.ts +++ b/goldens/public-api/common/http/http.d.ts @@ -1579,6 +1579,14 @@ export declare class HttpParams { toString(): string; } +export declare interface HttpParamsOptions { + encoder?: HttpParameterCodec; + fromObject?: { + [param: string]: string | ReadonlyArray; + }; + fromString?: string; +} + export declare interface HttpProgressEvent { loaded: number; total?: number; diff --git a/packages/common/http/public_api.ts b/packages/common/http/public_api.ts index a85243367c..8a434169d7 100644 --- a/packages/common/http/public_api.ts +++ b/packages/common/http/public_api.ts @@ -12,7 +12,7 @@ export {HttpHeaders} from './src/headers'; export {HTTP_INTERCEPTORS, HttpInterceptor} from './src/interceptor'; export {JsonpClientBackend, JsonpInterceptor} from './src/jsonp'; export {HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpInterceptingHandler as ɵHttpInterceptingHandler} from './src/module'; -export {HttpParameterCodec, HttpParams, HttpUrlEncodingCodec} from './src/params'; +export {HttpParameterCodec, HttpParams, HttpParamsOptions, HttpUrlEncodingCodec} from './src/params'; export {HttpRequest} from './src/request'; export {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpResponseBase, HttpSentEvent, HttpUploadProgressEvent, HttpUserEvent} from './src/response'; export {HttpXhrBackend, XhrFactory} from './src/xhr';