# @types/gulp-imagemin

> TypeScript definitions for gulp-imagemin

Latest version **8.0.6** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/gulp-imagemin
pnpm add @types/gulp-imagemin
yarn add @types/gulp-imagemin
bun add @types/gulp-imagemin
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 8.0.6 |
| Published | 2023-11-21 |
| First published | 2018-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/gulp-imagemin
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-imagemin
- npm.io page: https://npm.io/package/@types/gulp-imagemin

## Dependencies (6)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/imagemin](https://npm.io/package/@types/imagemin.md) *
- [@types/imagemin-svgo](https://npm.io/package/@types/imagemin-svgo.md) *
- [@types/imagemin-mozjpeg](https://npm.io/package/@types/imagemin-mozjpeg.md) *
- [@types/imagemin-optipng](https://npm.io/package/@types/imagemin-optipng.md) *
- [@types/imagemin-gifsicle](https://npm.io/package/@types/imagemin-gifsicle.md) *

## Recent versions

- 8.0.6 (latest) — 2023-11-21
- 8.0.2 (ts4.3) — 2023-05-10
- 8.0.1 (ts3.8) — 2022-02-23
- 7.0.3 (ts3.6) — 2021-07-08
- 7.0.2 (ts3.5) — 2021-03-07
- 7.0.1 (ts3.4) — 2021-01-23
- 7.0.0 (ts2.8) — 2020-02-28
- 4.1.1 (ts2.2) — 2018-08-29
- 4.1.0 (ts2.0) — 2018-07-30
- 8.0.5 — 2023-11-07
- 8.0.4 — 2023-10-18
- 8.0.3 — 2023-09-20
- 8.0.0 — 2022-02-22

## README

# Installation
> `npm install --save @types/gulp-imagemin`

# Summary
This package contains type definitions for gulp-imagemin (https://github.com/sindresorhus/gulp-imagemin#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-imagemin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-imagemin/index.d.ts)
````ts
/// <reference types="node" />

import { Plugin } from "imagemin";
import { Options as GifsicleOptions } from "imagemin-gifsicle";
import { Options as MozjpegOptions } from "imagemin-mozjpeg";
import { Options as OptipngOptions } from "imagemin-optipng";
import { Options as SvgoOptions } from "imagemin-svgo";
import { Transform } from "stream";

declare function imagemin(pluginsOrOptions?: readonly Plugin[] | imagemin.Options): Transform;
declare function imagemin(plugins?: readonly Plugin[], options?: imagemin.Options): Transform;

declare namespace imagemin {
    interface Options {
        silent?: boolean | undefined;
        verbose?: boolean | undefined;
    }

    type PluginFactory<T> = (options?: T) => Plugin;

    const gifsicle: PluginFactory<GifsicleOptions>;
    const mozjpeg: PluginFactory<MozjpegOptions>;
    const optipng: PluginFactory<OptipngOptions>;
    const svgo: PluginFactory<SvgoOptions>;
}

export = imagemin;

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: [@types/imagemin](https://npmjs.com/package/@types/imagemin), [@types/imagemin-gifsicle](https://npmjs.com/package/@types/imagemin-gifsicle), [@types/imagemin-mozjpeg](https://npmjs.com/package/@types/imagemin-mozjpeg), [@types/imagemin-optipng](https://npmjs.com/package/@types/imagemin-optipng), [@types/imagemin-svgo](https://npmjs.com/package/@types/imagemin-svgo), [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Romain Faust](https://github.com/romain-faust).

---
_Source: https://npm.io/package/@types/gulp-imagemin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
