together-ai-sdk
Version:
A typescript SDK for the Together AI API
31 lines (30 loc) • 1.07 kB
TypeScript
/**
* Recursively convert all keys of an object from snake_case to camelCase
* @param obj - the object to convert
* @returns the object with new keys
*/
export declare const snakeCase2camelCase: (obj: any) => any;
/**
* Takes a snake case string and converts it into camel case
* @param snakeCase - the string in snake case
* @returns camel case string
*/
export declare const convertSnakeCase: (snakeCase: string) => string;
/**
* Recursively convert all keys of an object from camelCase to snake_case
* @param obj - the object to convert
* @returns the object with new keys
*/
export declare const camelCase2snakeCase: (obj: any) => any;
/**
* Takes a camel case string and converts it into snake case
* @param camelCase - the string in camel case
* @returns snake case string
*/
export declare const convertCamelCase: (camelCase: string) => string;
/**
* Uppercases the first letter and lowercases all other letters
* @param str - the string to title case
* @returns the title cased string
*/
export declare const titleCase: (str: string) => string;