8889841cREADME.md000066600000003231150476770420006042 0ustar00# 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, 08 Feb 2023 19:03:02 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). index.d.ts000066600000001705150476770420006470 0ustar00// 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; LICENSE000066600000002165150476770420005575 0ustar00 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE package.json000066600000001751150476770420007056 0ustar00{ "name": "@types/imagemin", "version": "8.0.1", "description": "TypeScript definitions for imagemin", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin", "license": "MIT", "contributors": [ { "name": "Romain Faust", "url": "https://github.com/romain-faust", "githubUsername": "romain-faust" }, { "name": "Jeff Chan", "url": "https://github.com/hkjeffchan", "githubUsername": "hkjeffchan" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/imagemin" }, "scripts": {}, "dependencies": { "@types/node": "*" }, "typesPublisherContentHash": "498cbb93dbfcb0d2e6ca4019ab6f943c95a982b37aec69f94a9c01308c9c2cde", "typeScriptVersion": "4.2", "type": "module" }