芝麻web文件管理V1.00
编辑当前文件:/home/rejoandoctor/public_html/node_modules/@types/imagemin/README.md
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin/index.d.ts) ````ts // Type definitions for imagemin 8.0 // Project: https://github.com/imagemin/imagemin#readme // Definitions by: Romain Faust
// Jeff Chan
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped ///
/** * @async */ declare function imagemin(input: ReadonlyArray
, options?: Options): Promise
; declare namespace imagemin { /** * @async */ function buffer(input: Buffer, options?: BufferOptions): Promise
; } export type Plugin = (input: Buffer) => Promise
; export interface Options { destination?: string | undefined; plugins: ReadonlyArray
; glob?: boolean | undefined; } export interface Result { data: Buffer; sourcePath: string; destinationPath: string; } export interface BufferOptions { plugins: ReadonlyArray
; } export default imagemin; ```` ### Additional Details * Last updated: Wed, 29 Sep 2021 08:01:27 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) * Global values: none # Credits These definitions were written by [Romain Faust](https://github.com/romain-faust), and [Jeff Chan](https://github.com/hkjeffchan).