mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add type definitions for gulp-strip-debug
This commit is contained in:
12
gulp-strip-debug/gulp-strip-debug-tests.ts
Normal file
12
gulp-strip-debug/gulp-strip-debug-tests.ts
Normal 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
10
gulp-strip-debug/gulp-strip-debug.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user