diff --git a/gulp-jade/gulp-jade-tests.ts b/gulp-jade/gulp-jade-tests.ts new file mode 100644 index 000000000..7334afc83 --- /dev/null +++ b/gulp-jade/gulp-jade-tests.ts @@ -0,0 +1,25 @@ +/// +/// +/// + +import gulp = require("gulp"); +import jade = require("gulp-jade"); + + +gulp.task('check1', function() { + gulp.src('lib/*.jade') + .pipe(jade({ + locals: {}, + client: false + })); +}); + +import jadeLib = require('jade'); + +gulp.task('check2', function() { + gulp.src('lib/*.jade') + .pipe(jade({ + jade: jadeLib, + pretty: true + })); +}); \ No newline at end of file diff --git a/gulp-jade/gulp-jade.d.ts b/gulp-jade/gulp-jade.d.ts new file mode 100644 index 000000000..2f31889c2 --- /dev/null +++ b/gulp-jade/gulp-jade.d.ts @@ -0,0 +1,24 @@ +// Type definitions for gulp-jade +// Project: https://github.com/phated/gulp-jade +// Definitions by: Louis Grignon +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module "gulp-jade" { + function GulpJade(options?: GulpJadeOptions): NodeJS.ReadWriteStream; + + interface GulpJadeOptions { + client?: boolean; + + locals?: Object; + + jade?: any; + + pretty?: boolean; + } + + namespace GulpJade { + } + export = GulpJade; +}