diff --git a/gulp-debug/gulp-debug-tests.ts b/gulp-debug/gulp-debug-tests.ts new file mode 100644 index 0000000000..e6485d8da9 --- /dev/null +++ b/gulp-debug/gulp-debug-tests.ts @@ -0,0 +1,14 @@ +/// +/// + +import gulp = require('gulp'); +import debug = require('gulp-debug'); + +gulp.task('default', () => + gulp.src('foo.js') + .pipe(debug({title: 'unicorn:'})) + .pipe(gulp.dest('dist')) +); + + +debug(); diff --git a/gulp-debug/gulp-debug.d.ts b/gulp-debug/gulp-debug.d.ts new file mode 100644 index 0000000000..743f5f5eb1 --- /dev/null +++ b/gulp-debug/gulp-debug.d.ts @@ -0,0 +1,17 @@ +// Type definitions for gulp-debug v2.0.1 +// Project: https://github.com/sindresorhus/gulp-debug +// Definitions by: Tanguy Krotoff +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module 'gulp-debug' { + interface IOptions { + title?: string; + minimal?: boolean; + } + + function debug(options?: IOptions): NodeJS.ReadWriteStream; + + export = debug; +}