typedash
Version:
modern, type-safe collection of utility functions
24 lines (23 loc) • 758 B
text/typescript
import { CamelCase } from "type-fest";
//#region src/functions/camelCase/camelCase.d.ts
/**
* Changes the casing of a string to kebab case.
* @param string The input string to change the casing of.
* @returns A new string with the casing changed to kebab case.
* @example
* ```ts
* camelCase('fooBar') // 'fooFar'
* camelCase('foo bar') // 'fooBar'
* camelCase('foo-bar') // 'fooBar'
* camelCase('fooBar42') // 'fooBar42'
* ```
*/
declare function camelCase<S extends string>(string: S): CamelCase$1<S>;
/**
* Changes the casing of a string to camel case.
* @see {@link camelCase}.
*/
type CamelCase$1<S extends string> = CamelCase<S>;
//#endregion
export { camelCase as n, CamelCase$1 as t };
//# sourceMappingURL=camelCase-D3o07pt_.d.cts.map