UNPKG

deep-case-crafter

Version:

Transforms deeply nested object, array, Map, and Set keys between common case formats while preserving TypeScript type safety

21 lines (20 loc) 715 B
import { StringCase } from '../types/stringCaseTypes'; /** * Internal type used by string preparation utility * Not exported as it's an implementation detail */ interface StringPreparationResult { string: string; shouldTransform: boolean; sourceCase: StringCase | null; singleWord: boolean; } /** * Prepares a string for case transformation by validating input * @param str - The input string to prepare * @returns StringPreparationResult object containing the processed parts * @throws {Error} If the input is not a string * @internal This function is for internal use by the library */ export declare function prepareStringTransformation(str: string): StringPreparationResult; export {};