Add type definitions for gulp-strip-debug

This commit is contained in:
Peter Juras
2016-01-25 19:42:27 +01:00
parent 7b3d5a6ea5
commit e3d395a870
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/// <reference path="gulp-strip-debug.d.ts" />
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as stripDebug from 'gulp-strip-debug';
// Example taken from https://www.npmjs.com/package/gulp-strip-debug
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(stripDebug())
.pipe(gulp.dest('dist'));
});

10
gulp-strip-debug/gulp-strip-debug.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
// Type definitions for gulp-strip-debug v1.1.0
// Project: https://www.npmjs.com/package/gulp-strip-debug
// Definitions by: Peter Juras <https://github.com/peterjuras>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "gulp-strip-debug" {
const gulpStripDebug : () => NodeJS.ReadWriteStream;
export = gulpStripDebug;
}