Files
DefinitelyTyped/types/gulp-mustache/gulp-mustache-tests.ts
Christopher Durham 257c478975 Types for gulp-mustache (#18607)
* Types for gulp-mustache

* Remove unnecessary ///reference to node

* Review: rename Partials > Hash
2017-08-04 15:55:37 -07:00

19 lines
481 B
TypeScript

import * as mustache from "gulp-mustache";
// noinspection ES6UnusedImports
import { Transform } from "stream";
mustache({ // $ExpectType Transform
msg: "Hello Gulp!"
});
mustache({ // $ExpectType Transform
msg: "Hello Gulp!",
nested_value: "I am nested.",
another_value: "1 2 3"
}, {}, {
some_inner_partial: "<p>{{nested_value}}</p>",
another_partial: "<div>{{another_value}}</div>"
});
mustache('your_json_file.json', {}, {}); // $ExpectType Transform