@monstermann/fn
Version:
A utility library for TypeScript.
25 lines (23 loc) • 580 B
TypeScript
import { TitleCase } from "string-ts";
//#region src/string/titleCase.d.ts
/**
* `titleCase(target)`
*
* Converts `target` string to Title Case format.
*
* ```ts
* titleCase("hello world"); // "Hello World"
* titleCase("hello-world"); // "Hello World"
* ```
*
* ```ts
* pipe("hello world", titleCase()); // "Hello World"
* pipe("hello-world", titleCase()); // "Hello World"
* ```
*/
declare const titleCase$1: {
(): <T extends string>(target: T) => TitleCase<T>;
<T extends string>(target: T): TitleCase<T>;
};
//#endregion
export { titleCase$1 as titleCase };