DefinitelyTyped/types/gulp-html-replace/index.d.ts
2018-03-22 19:39:13 +01:00

31 lines
712 B
TypeScript

// Type definitions for gulp-html-replace v1.5.5
// Project: https://www.npmjs.com/package/gulp-html-replace
// Definitions by: Peter Juras <https://github.com/peterjuras>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/// <reference types="node" />
interface AdvancedTask {
src: string | string[];
tpl: string;
}
interface Tasks {
[taskId: string]: string | string[] | AdvancedTask;
}
interface Options {
keepUnassigned?: boolean;
keepBlockTags?: boolean;
resolvePaths?: boolean;
}
interface HtmlReplace {
(tasks: Tasks, options?: Options): NodeJS.ReadWriteStream;
}
declare const htmlReplace: HtmlReplace;
export = htmlReplace;