@cc-heart/utils
Version:
🔧 javascript common tools collection
15 lines (14 loc) • 472 B
TypeScript
/**
* convert query string to object
*
* @param url http url
* @returns
*/
export declare function convertQueryString<T extends Record<string, string>>(url: string): T;
/**
* convert params routes to regular expressions
*
* @param path a params paths
* @returns null or An array contains the RegExp that matches the params and the path for each params parameter
*/
export declare function convertParamsRouterToRegExp(path: string): (RegExp | string[])[] | null;