deep-case-crafter
Version:
Transforms deeply nested object, array, Map, and Set keys between common case formats while preserving TypeScript type safety
9 lines (8 loc) • 333 B
TypeScript
import { StringCase } from '../types/stringCaseTypes';
/**
* Transforms a single word to the target case format
* @param str - The single word to transform
* @param targetCase - The target case format
* @returns The transformed string
*/
export default function transformSingleWord(str: string, targetCase: StringCase): string;