We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b04b6b4 commit afdc4fbCopy full SHA for afdc4fb
gulp-replace/gulp-replace.d.ts
@@ -10,8 +10,12 @@ declare module "gulp-replace" {
10
skipBinary?: boolean;
11
}
12
13
- function replace(pattern: string, replacement: string, opts?: Options): NodeJS.ReadWriteStream;
14
- function replace(pattern: RegExp, replacement: string, opts?: Options): NodeJS.ReadWriteStream;
+ interface Replacer {
+ (match: string): string
15
+ }
16
+
17
+ function replace(pattern: string, replacement: string | Replacer, opts?: Options): NodeJS.ReadWriteStream;
18
+ function replace(pattern: RegExp, replacement: string | Replacer, opts?: Options): NodeJS.ReadWriteStream;
19
20
export = replace;
21
0 commit comments