Nostalgic Punchcard Missing

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

    8.0.0 • 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.

    index.d.ts

    // Type definitions for imagemin 8.0
    // Project: https://github.com/imagemin/imagemin#readme
    // Definitions by: Romain Faust <https://github.com/romain-faust>
    //                 Jeff Chan <https://github.com/hkjeffchan>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    /**
     * @async
     */
    declare function imagemin(input: ReadonlyArray<string>, options?: Options): Promise<Result[]>;
    
    declare namespace imagemin {
        /**
         * @async
         */
        function buffer(input: Buffer, options?: BufferOptions): Promise<Buffer>;
    }
    
    export type Plugin = (input: Buffer) => Promise<Buffer>;
    
    export interface Options {
        destination?: string | undefined;
        plugins: ReadonlyArray<Plugin>;
        glob?: boolean | undefined;
    }
    
    export interface Result {
        data: Buffer;
        sourcePath: string;
        destinationPath: string;
    }
    
    export interface BufferOptions {
        plugins: ReadonlyArray<Plugin>;
    }
    
    export default imagemin;

    Additional Details

    • Last updated: Wed, 29 Sep 2021 08:01:27 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

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

    Keywords

    none

    Install

    npm i @types/imagemin

    DownloadsWeekly Downloads

    230,343

    Version

    8.0.0

    License

    MIT

    Unpacked Size

    4.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • types