UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

25 lines (23 loc) 575 B
import { CamelCase } from "string-ts"; //#region src/string/camelCase.d.ts /** * `camelCase(target)` * * Converts `target` string to camelCase format. * * ```ts * camelCase("hello world"); // "helloWorld" * camelCase("hello-world"); // "helloWorld" * ``` * * ```ts * pipe("hello world", camelCase()); // "helloWorld" * pipe("hello-world", camelCase()); // "helloWorld" * ``` */ declare const camelCase$1: { (): <T extends string>(target: T) => CamelCase<T>; <T extends string>(target: T): CamelCase<T>; }; //#endregion export { camelCase$1 as camelCase };