export class HttpParams { private constructor ( private readonly param ) { } static create ( ) { return new HttpParams ( new URLSearchParams ( ) ) ; } set < Value extends string | boolean | number > ( key , value ) { this . param . set ( key , value . toString ( ) ) ; return new HttpParams ( this . param ) ; } toString ( ) { return this . param . toString ( ) ; } }