UNPKG

374 BTypeScriptView Raw
1type Config = {
2 params?: Record<string, any>;
3};
4/**
5 * Creates request parameters configuration by parsing an existing query object
6 * @private
7 * @param {Object} query
8 * @return {Object} Config object with `params` property, ready to be used in axios
9 */
10export default function createRequestConfig({ query }: {
11 query: Record<string, any>;
12}): Config;
13export {};