5.0.3 • Published 6 months ago

@types/gulp-inject v5.0.3

Weekly downloads
1,691
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for gulp-inject 5.0
// Project: https://github.com/klei/gulp-inject
// Definitions by: Keita Kagurazaka <https://github.com/k-kagurazaka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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.

5.0.3

6 months ago

5.0.2

7 months ago

5.0.1

1 year ago

5.0.0

3 years ago

0.0.34

3 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28-alpha

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.16-alpha

8 years ago

0.0.15-alpha

8 years ago