@reservoir0x/relay-sdk
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
27 lines • 509 B
TypeScript
/**
* Set URL query params using a typed objects
*
* This will convert an object
*
* ```js
* {
* foo: 'bar',
* age: 50,
* }
* ```
*
* into a query string
*
* `?foo=bar&age=50`
*
* and append it to URL provided
*
* `https://api.example.com/tokens?foo=bar&age=50`
*
* @param url An URL instance
* @param query An object containing all needed query params.
*/
export declare function setParams(url: URL, query: {
[x: string]: any;
}): void;
//# sourceMappingURL=params.d.ts.map