0.14.8 • Published 2 years ago

@types/gulp-file-include v0.14.8

Weekly downloads
1,092
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/gulp-file-include

Summary

This package contains type definitions for gulp-file-include (https://github.com/coderhaoxin/gulp-file-include).

Details

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

index.d.ts

// Type definitions for gulp-file-include 0.14.0
// Project: https://github.com/coderhaoxin/gulp-file-include
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

declare function fileinclude(prefix: string): NodeJS.ReadWriteStream;
declare function fileinclude(opts: fileinclude.Options): NodeJS.ReadWriteStream;
declare namespace fileinclude {
    export interface Options {
        /** default: "@@" */
        prefix?: string | undefined;
        /** default: "" */
        suffix?: string | undefined;
        /**
         * Can be "@file" or "@root" or some base path.
         * default: "@file"
         */
        basepath?: "@file" | "@root" | string | undefined;
        /**
         * Filters basically look like functions that get passed into '@@include'.
         * When one of these functions is called, something of that name is looked
         * up in this object and called to get the contents of that include.
         */
        filters?: { [filter: string]: (arg: any) => string } | undefined;
        /**
         * Effectively a context for variables used in 'if' statements.
         */
        context?: { [contextVarName: string]: any } | undefined;
        /**
         * default: false
         */
        indent?: boolean | undefined;
    }
}

export = fileinclude;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:37 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Daniel Rosenwasser.

0.14.7

2 years ago

0.14.8

2 years ago

0.14.6

2 years ago

0.14.5

4 years ago

0.14.4

5 years ago

0.14.3

8 years ago

0.14.2

8 years ago

0.14.1

9 years ago