(params: Record<string, string>)
| 116 | }; |
| 117 | |
| 118 | export const objectToQueryParams = (params: Record<string, string>): string => { |
| 119 | const link = new URLSearchParams(); |
| 120 | |
| 121 | Object.entries(params).forEach(([param, value]) => { |
| 122 | if (value === undefined || value === null) { |
| 123 | return; |
| 124 | } |
| 125 | |
| 126 | link.set(param, value); |
| 127 | }); |
| 128 | |
| 129 | return link.toString(); |
| 130 | }; |
| 131 | |
| 132 | export const link = { |
| 133 | post: { |
no outgoing calls
no test coverage detected