The type of append method of URLSearchParams is append(name: string, value: string): void; in typescript.
I tried appending array & number it worked for me in the browser but gives error in typescript code.
In MDN I found an example where number is being used as a value https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/append
I want to know if we can use other than string as value in typescript