@metis-w/api-client
Version:
Modern TypeScript HTTP API client with dynamic routes, parameterized endpoints, interceptors, and advanced features
20 lines • 811 B
TypeScript
/**
* Converts camelCase string to kebab-case
* @param string - The camelCase string to convert
* @returns The kebab-case string
*/
export declare function camelToKebab(string: string): string;
/**
* Converts kebab-case string to camelCase
* @param string - The kebab-case string to convert
* @returns The camelCase string
*/
export declare function kebabToCamel(string: string): string;
/**
* Converts object keys from camelCase to kebab-case or vice versa
* @param obj - The object with keys to convert
* @param converter - The conversion function (camelToKebab or kebabToCamel)
* @returns A new object with converted keys
*/
export declare function convertObjectKeys(obj: Record<string, any>, converter: (key: string) => string): Record<string, any>;
//# sourceMappingURL=case-converter.d.ts.map