UNPKG

ngx-restful-client

Version:

The ultimate Angular library to exquisitely declare and implement the REST APIs you'll use in your application.

18 lines (17 loc) 687 B
import { HttpParams } from '@angular/common/http'; export declare class HttpParamsBuilder { private _params; constructor(params?: HttpParams); static fromHttpParams(httpParams: HttpParams): HttpParamsBuilder; static fromKeyValue(params: { [key: string]: string | string[]; }): HttpParamsBuilder; static fromObject<T>(object: T): HttpParamsBuilder; private static addParam; append(key: string, value: any): HttpParamsBuilder; appendAll(key: string, value: string[]): HttpParamsBuilder; appendHttpParams(httpParams: HttpParams): HttpParamsBuilder; build(): HttpParams; readonly params: HttpParams; private static validateArgs; }