@types/imagemin
TypeScript icon, indicating that this package has built-in type declarations

9.0.1 • Public • Published

Installation

npm install --save @types/imagemin

Summary

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

Details

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

/// <reference types="node" />

/**
 * @async
 */
declare function imagemin(input: readonly string[], options?: Options): Promise<Result[]>;

declare namespace imagemin {
    /**
     * @async
     */
    function buffer(data: Uint8Array, options?: BufferOptions): Promise<Uint8Array>;
}

export type Plugin = (input: Uint8Array) => Promise<Uint8Array>;

export interface Options {
    destination?: string | undefined;
    plugins: readonly Plugin[];
    glob?: boolean | undefined;
}

export interface Result {
    data: Uint8Array;
    sourcePath: string;
    destinationPath: string;
}

export interface BufferOptions {
    plugins: readonly Plugin[];
}

export default imagemin;

Additional Details

  • Last updated: Fri, 17 Jan 2025 13:33:26 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Romain Faust, and Jeff Chan.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
9.0.184,187ts5.0
9.0.184,187ts5.7
9.0.184,187ts5.6
9.0.184,187ts5.8
9.0.184,187ts5.1
9.0.184,187ts5.2
9.0.184,187ts5.4
9.0.184,187ts5.5
9.0.184,187latest
9.0.184,187ts5.3
9.0.184,187ts5.9
8.0.045,468ts3.8
8.0.045,468ts4.1
8.0.045,468ts4.0
8.0.045,468ts3.9
8.0.045,468ts3.7
8.0.545,046ts4.5
8.0.545,046ts4.6
9.0.035,019ts4.9
9.0.035,019ts4.8
9.0.035,019ts4.7
8.0.127,975ts4.3
8.0.127,975ts4.4
8.0.127,975ts4.2
7.0.126,510ts3.6
7.0.012,788ts3.0
7.0.012,788ts2.4
7.0.012,788ts2.5
7.0.012,788ts2.6
7.0.012,788ts2.8
7.0.012,788ts2.9
7.0.012,788ts3.1
7.0.012,788ts2.2
7.0.012,788ts2.7
7.0.012,788ts3.5
7.0.012,788ts3.4
7.0.012,788ts3.3
7.0.012,788ts3.2
7.0.012,788ts2.0
7.0.012,788ts2.1
7.0.012,788ts2.3

Version History

VersionDownloads (Last 7 Days)Published
9.0.184,187
9.0.035,019
8.0.545,046
8.0.43,423
8.0.32,689
8.0.2667
8.0.127,975
8.0.045,468
7.0.126,510
7.0.012,788
6.0.01,772

Package Sidebar

Install

npm i @types/imagemin

Weekly Downloads

285,544

Version

9.0.1

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • types