pragmatic-fp-ts
Version:
Opinionated functional programming library with easy use in mind
8 lines (7 loc) • 396 B
TypeScript
import { Endomorphism } from "./main";
type Replace = string | RegExp;
type Replacer = string | Endomorphism<string>;
export declare function replace(what: Replace, by: Replacer, where: string): string;
export declare function replace(what: Replace, by: Replacer): (where: string) => string;
export declare function replace(what: Replace): (by: Replacer) => (where: string) => string;
export {};