npm.io
5.2.4 • Published 2 years ago

@types/imagemin-optipng

Licence
MIT
Version
5.2.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/imagemin-optipng

Summary

This package contains type definitions for imagemin-optipng (https://github.com/imagemin/imagemin-optipng#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin-optipng.

index.d.ts

import { Plugin } from "imagemin";

declare function imageminOptipng(options?: imageminOptipng.Options): Plugin;

declare namespace imageminOptipng {
    interface Options {
        bitDepthReduction?: boolean | undefined;
        colorTypeReduction?: boolean | undefined;
        optimizationLevel?: number | undefined;
        paletteReduction?: boolean | undefined;
    }
}

export = imageminOptipng;

Additional Details

Credits

These definitions were written by Romain Faust.