Installation
npm install --save @types/yodasws__gulp-pattern-replace
Summary
This package contains type definitions for @yodasws/gulp-pattern-replace (https://github.com/YodasWs/gulp-pattern-replace).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yodasws__gulp-pattern-replace.
index.d.ts
/// <reference types="node"/>
import replacestream = require("replacestream");
declare function replacePattern(
object: replacePattern.SearchObject,
replaceTo?: replacePattern.Replacement,
): NodeJS.ReadWriteStream;
declare namespace replacePattern {
type SearchPattern = RegExp | string;
type Replacement = string | replacestream.ReplaceFunction;
interface SearchOptions {
pattern?: SearchPattern;
replacement?: Replacement;
}
type SearchObject =
| SearchOptions
| SearchPattern
| ReadonlyArray<SearchOptions | SearchPattern | [SearchPattern, Replacement]>;
}
export = replacePattern;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node, @types/replacestream
Credits
These definitions were written by Christophe Coevoet.