Files
homewebsite/node_modules/stream-replace-string/index.d.ts
2025-10-17 21:06:57 +00:00

14 lines
375 B
TypeScript

import { Transform, Readable } from 'stream';
interface Options {
limit?: number;
bufferReplaceStream?: boolean;
}
type ReplaceStr = string | Promise<string>;
type ReplacerFunc = (matches?: number) => ReplaceStr;
declare function replace(searchStr: string, replaceWith: ReplaceStr | ReplacerFunc | Readable, options?: Options): Transform;
export default replace;