@types/imagemin-gifsicle
Version:
TypeScript definitions for imagemin-gifsicle
30 lines (26 loc) • 861 B
TypeScript
import { Plugin } from "imagemin";
/**
* Imagemin plugin for {@link https://www.lcdf.org/gifsicle/|Gifsicle}
*/
declare function imageminGifsicle(options?: imageminGifsicle.Options): Plugin;
declare namespace imageminGifsicle {
interface Options {
/**
* Reduce the number of distinct colors in each output GIF to num or less.
* Num must be between 2 and 256.
*/
colors?: number | undefined;
/**
* Interlace gif for progressive rendering.
* @default false
*/
interlaced?: boolean | undefined;
/**
* Select an optimization level between 1 and 3.
* @see {@link https://github.com/imagemin/imagemin-gifsicle#optimizationlevel}
* @default 1
*/
optimizationLevel?: number | undefined;
}
}
export = imageminGifsicle;