@types/gulp-inject
TypeScript icon, indicating that this package has built-in type declarations

5.0.3 • Public • Published

Installation

npm install --save @types/gulp-inject

Summary

This package contains type definitions for gulp-inject (https://github.com/klei/gulp-inject).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-inject.

index.d.ts

/// <reference types="node" />
/// <reference types="vinyl" />

import File = require("vinyl");

declare function inject(sources: NodeJS.ReadableStream, options?: inject.IOptions): NodeJS.ReadWriteStream;

declare namespace inject {
    interface ITagFunction {
        (targetExt: string, sourceExt: string): string;
    }

    interface ITransformFunction {
        (filepath: string, file?: File, index?: number, length?: number, targetFile?: File): string;
    }

    interface IOptions {
        ignorePath?: string | string[] | undefined;
        relative?: boolean | undefined;
        addPrefix?: string | undefined;
        addSuffix?: string | undefined;
        addRootSlash?: boolean | undefined;
        name?: string | undefined;
        removeTags?: boolean | undefined;
        empty?: boolean | undefined;
        starttag?: string | ITagFunction | undefined;
        endtag?: string | ITagFunction | undefined;
        transform?: ITransformFunction | undefined;
        selfClosingTag?: boolean | undefined;
        quiet?: boolean | undefined;
    }
}

export = inject;

Additional Details

Credits

These definitions were written by Keita Kagurazaka.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-inject

Weekly Downloads

2,182

Version

5.0.3

License

MIT

Unpacked Size

4.91 kB

Total Files

5

Last publish

Collaborators

  • types