DefinitelyTyped/types/gulp-mustache/index.d.ts
Pine Mizune 182a90fc99 Fix gulp-mustache types (#25165)
* Fix gulp-mustache types

* Fix `gulp-mustache` test
2018-04-21 05:48:10 +12:00

28 lines
738 B
TypeScript

// Type definitions for gulp-mustache v 3.0
// Project: https://github.com/rogeriopvl/gulp-mustache
// Definitions by: Christopher Durham <cad97@cad97.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Transform } from "stream";
declare namespace GulpMustache {
type View = Hash | string | undefined;
interface Hash {
[key: string]: any;
}
interface Options {
extension?: string;
tags?: ReadonlyArray<string>;
}
}
declare function GulpMustache(view: GulpMustache.View,
options?: GulpMustache.Options,
partials?: GulpMustache.Hash): Transform;
export = GulpMustache;