route-sage-react
Version:
A TypeScript utility for managing and configuring routes with type safety and nested route support
17 lines • 741 B
TypeScript
/**
* Recursively converts a JavaScript object (including functions) into a string
* Recursively converts a JavaScript object into a string representation,
* handling the generation of the `url` function literal.
*
* @param {any} obj The object to convert.
* @param {number} indentLevel The current indentation level.
* @returns {string} The string representation of the object.
*/
export declare function objectToJsString(obj: any, indentLevel?: number): string;
/**
* Escapes special characters in a string to be used in a regex pattern.
* @param {string} string The string to escape.
* @returns {string} The escaped string.
*/
export declare function escapeRegExp(string: string): string;
//# sourceMappingURL=helpers.d.ts.map