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