@types/yodasws__gulp-pattern-replace
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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

Credits

These definitions were written by Christophe Coevoet.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/yodasws__gulp-pattern-replace

Weekly Downloads

37

Version

1.1.3

License

MIT

Unpacked Size

4.21 kB

Total Files

5

Last publish

Collaborators

  • types