6 lines
353 B
TypeScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
//#region src/compat/string/replace.d.ts
type ReplaceFunction = (match: string, ...args: any[]) => string;
declare function replace(string: string, pattern: RegExp | string, replacement: ReplaceFunction | string): string;
declare function replace(pattern: RegExp | string, replacement: ReplaceFunction | string): string;
//#endregion
export { replace };