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
/// <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: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by Daniel Rosenwasser.