mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
* Types for gulp-mustache * Remove unnecessary ///reference to node * Review: rename Partials > Hash
19 lines
481 B
TypeScript
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
|