LendAndRegret/node_modules/es-toolkit/dist/compat/string/replace.d.ts
2026-05-02 17:27:43 +08:00

6 lines
301 B
TypeScript

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;
export { replace };