UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

25 lines (23 loc) 521 B
import { Reverse } from "string-ts"; //#region src/string/reverse.d.ts /** * `reverse(target)` * * Reverses the characters in `target` string. * * ```ts * reverse("hello world"); // "dlrow olleh" * reverse("abc"); // "cba" * ``` * * ```ts * pipe("hello world", reverse()); // "dlrow olleh" * pipe("abc", reverse()); // "cba" * ``` */ declare const reverse$1: { (): <T extends string>(target: T) => Reverse<T>; <T extends string>(target: T): Reverse<T>; }; //#endregion export { reverse$1 as reverse };