mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
29 lines
824 B
TypeScript
29 lines
824 B
TypeScript
import image = require('gulp-image');
|
|
|
|
image(false); // $ExpectError
|
|
|
|
image(); // $ExpectType Transform
|
|
image({});
|
|
image({
|
|
pngquant: true,
|
|
optipng: false,
|
|
zopflipng: true,
|
|
jpegRecompress: false,
|
|
mozjpeg: true,
|
|
guetzli: false,
|
|
gifsicle: true,
|
|
svgo: true,
|
|
concurrent: 10,
|
|
quiet: true // defaults to false
|
|
});
|
|
image({
|
|
optipng: ['-i 1', '-strip all', '-fix', '-o7', '-force'],
|
|
pngquant: ['--speed=1', '--force', 256],
|
|
zopflipng: ['-y', '--lossy_8bit', '--lossy_transparent'],
|
|
jpegRecompress: ['--strip', '--quality', 'medium', '--min', 40, '--max', 80],
|
|
mozjpeg: ['-optimize', '-progressive'],
|
|
guetzli: ['--quality', 85],
|
|
gifsicle: ['--optimize'],
|
|
svgo: ['--enable', 'cleanupIDs', '--disable', 'convertColors']
|
|
});
|