mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-20 03:04:37 +00:00
Merge pull request #28299 from romain-faust/gulp-jsonmin
[@types/gulp-jsonmin] Fix imports; remove useless test
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
import * as GulpJsonmin from 'gulp-jsonmin';
|
||||
import gulp = require('gulp');
|
||||
import gulpJsonmin = require('gulp-jsonmin');
|
||||
|
||||
GulpJsonmin();
|
||||
GulpJsonmin({});
|
||||
GulpJsonmin({ verbose: true });
|
||||
gulp.task('build', () => {
|
||||
return gulp.src('*.json')
|
||||
.pipe(gulpJsonmin())
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('build', () => {
|
||||
return gulp.src('*.json')
|
||||
.pipe(gulpJsonmin({ verbose: true }))
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
6
types/gulp-jsonmin/index.d.ts
vendored
6
types/gulp-jsonmin/index.d.ts
vendored
@@ -7,12 +7,12 @@
|
||||
|
||||
import { Transform } from 'stream';
|
||||
|
||||
declare function jsonmin(options?: jsonmin.Options): Transform;
|
||||
declare function gulpJsonmin(options?: gulpJsonmin.Options): Transform;
|
||||
|
||||
declare namespace jsonmin {
|
||||
declare namespace gulpJsonmin {
|
||||
interface Options {
|
||||
verbose?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = jsonmin;
|
||||
export = gulpJsonmin;
|
||||
|
||||
Reference in New Issue
Block a user