mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add definitions for gulp-debug (https://github.com/sindresorhus/gulp-debug)
This commit is contained in:
parent
c2a9eb74ce
commit
a0cf73c965
14
gulp-debug/gulp-debug-tests.ts
Normal file
14
gulp-debug/gulp-debug-tests.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/// <reference path="gulp-debug.d.ts" />
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
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();
|
||||
17
gulp-debug/gulp-debug.d.ts
vendored
Normal file
17
gulp-debug/gulp-debug.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Type definitions for gulp-debug v2.0.1
|
||||
// Project: https://github.com/sindresorhus/gulp-debug
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module 'gulp-debug' {
|
||||
interface IOptions {
|
||||
title?: string;
|
||||
minimal?: boolean;
|
||||
}
|
||||
|
||||
function debug(options?: IOptions): NodeJS.ReadWriteStream;
|
||||
|
||||
export = debug;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user