0.14.8 • Published 2 years ago
@types/gulp-file-include v0.14.8
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.