UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

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