Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/imagemin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/imagemin

TypeScript definitions for imagemin

  • 7.0.1
  • ts3.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
341K
decreased by-0.68%
Maintainers
1
Weekly downloads
 
Created
Source

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 7.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" />

declare function imagemin(input: ReadonlyArray<string>, options?: imagemin.Options): Promise<imagemin.Result[]>;

declare namespace imagemin {
    type Plugin = (input: Buffer) => Promise<Buffer>;

    interface Options {
        destination?: string | undefined;
        plugins: ReadonlyArray<Plugin>;
        glob?: boolean | undefined;
    }

    interface Result {
        data: Buffer;
        sourcePath: string;
        destinationPath: string;
    }

    interface BufferOptions {
        plugins: ReadonlyArray<Plugin>;
    }

    function buffer(buffer: Buffer, options?: BufferOptions): Promise<Buffer>;
}

export = imagemin;

Additional Details

  • Last updated: Tue, 06 Jul 2021 21:33:38 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

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

FAQs

Package last updated on 06 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc