@types/imagemin-webp
Advanced tools
Comparing version 5.1.2 to 7.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for imagemin-webp 5.1 | ||
// Type definitions for imagemin-webp 7.0 | ||
// Project: https://github.com/imagemin/imagemin-webp#readme | ||
@@ -12,92 +12,88 @@ // Definitions by: Brett M <https://github.com/brettm12345> | ||
*/ | ||
declare function imageminWebp(options?: imageminWebp.Options): Plugin; | ||
export default function imageminWebp(options?: Options): Plugin; | ||
declare namespace imageminWebp { | ||
type Preset = 'default' | 'photo' | 'picture' | 'drawing' | 'icon' | 'text'; | ||
interface Resize { | ||
width: number; | ||
height: number; | ||
} | ||
export type Preset = 'default' | 'photo' | 'picture' | 'drawing' | 'icon' | 'text'; | ||
export interface Resize { | ||
width: number; | ||
height: number; | ||
} | ||
interface Crop extends Resize { | ||
x: number; | ||
y: number; | ||
} | ||
export interface Crop extends Resize { | ||
x: number; | ||
y: number; | ||
} | ||
type Metadata = 'all' | 'none' | 'exif' | 'icc' | 'xmp'; | ||
export type Metadata = 'all' | 'none' | 'exif' | 'icc' | 'xmp'; | ||
interface Options { | ||
/** | ||
* Preset setting. | ||
* @default default | ||
*/ | ||
preset?: Preset | undefined; | ||
/** | ||
* Set quality factor between 0 and 100. | ||
* @default 75 | ||
*/ | ||
quality?: number | undefined; | ||
/** | ||
* Set transparency-compression quality between 0 and 100. | ||
* @default 100 | ||
*/ | ||
alphaQuality?: number | undefined; | ||
/** | ||
* Specify the compression method to use, | ||
* between 0 (fastest) and 6 (slowest). | ||
* This parameter controls the trade off between encoding speed | ||
* and the compressed file size and quality. | ||
* @default 4 | ||
*/ | ||
method?: number | undefined; | ||
/** | ||
* Set target size in bytes. | ||
*/ | ||
size?: number | undefined; | ||
/** | ||
* Set the amplitude of spatial noise shaping between 0 and 100. | ||
* @default 80 | ||
*/ | ||
sns?: number | undefined; | ||
/** | ||
* Set deblocking filter strength between 0 (off) and 100. | ||
*/ | ||
filter?: number | undefined; | ||
/** | ||
* Adjust filter strength automatically. | ||
* @default false | ||
*/ | ||
autoFilter?: boolean | undefined; | ||
/** | ||
* Set filter sharpness between 0 (sharpest) and 7 (least sharp). | ||
* @default 0 | ||
*/ | ||
sharpness?: number | undefined; | ||
/** | ||
* Encode images losslessly. | ||
* @default false | ||
*/ | ||
lossless?: boolean | undefined; | ||
/** | ||
* Encode losslessly with an additional lossy pre-processing step, | ||
* with a quality factor between | ||
* 0 (maximum pre-processing) and 100 (same as lossless). | ||
* @default 100 | ||
*/ | ||
nearLossless?: number | undefined; | ||
/** | ||
* Crop the image. | ||
*/ | ||
crop?: Crop | undefined; | ||
/** | ||
* Resize the image. Happens after crop. | ||
*/ | ||
resize?: Resize | undefined; | ||
/** | ||
* A list of metadata to copy from the input to the output if present. | ||
*/ | ||
metadata?: Metadata | Metadata[] | undefined; | ||
} | ||
export interface Options { | ||
/** | ||
* Preset setting. | ||
* @default default | ||
*/ | ||
preset?: Preset | undefined; | ||
/** | ||
* Set quality factor between 0 and 100. | ||
* @default 75 | ||
*/ | ||
quality?: number | undefined; | ||
/** | ||
* Set transparency-compression quality between 0 and 100. | ||
* @default 100 | ||
*/ | ||
alphaQuality?: number | undefined; | ||
/** | ||
* Specify the compression method to use, | ||
* between 0 (fastest) and 6 (slowest). | ||
* This parameter controls the trade off between encoding speed | ||
* and the compressed file size and quality. | ||
* @default 4 | ||
*/ | ||
method?: number | undefined; | ||
/** | ||
* Set target size in bytes. | ||
*/ | ||
size?: number | undefined; | ||
/** | ||
* Set the amplitude of spatial noise shaping between 0 and 100. | ||
* @default 80 | ||
*/ | ||
sns?: number | undefined; | ||
/** | ||
* Set deblocking filter strength between 0 (off) and 100. | ||
*/ | ||
filter?: number | undefined; | ||
/** | ||
* Adjust filter strength automatically. | ||
* @default false | ||
*/ | ||
autoFilter?: boolean | undefined; | ||
/** | ||
* Set filter sharpness between 0 (sharpest) and 7 (least sharp). | ||
* @default 0 | ||
*/ | ||
sharpness?: number | undefined; | ||
/** | ||
* Encode images losslessly. | ||
* @default false | ||
*/ | ||
lossless?: boolean | undefined; | ||
/** | ||
* Encode losslessly with an additional lossy pre-processing step, | ||
* with a quality factor between | ||
* 0 (maximum pre-processing) and 100 (same as lossless). | ||
* @default 100 | ||
*/ | ||
nearLossless?: number | undefined; | ||
/** | ||
* Crop the image. | ||
*/ | ||
crop?: Crop | undefined; | ||
/** | ||
* Resize the image. Happens after crop. | ||
*/ | ||
resize?: Resize | undefined; | ||
/** | ||
* A list of metadata to copy from the input to the output if present. | ||
*/ | ||
metadata?: Metadata | Metadata[] | undefined; | ||
} | ||
export = imageminWebp; |
{ | ||
"name": "@types/imagemin-webp", | ||
"version": "5.1.2", | ||
"version": "7.0.0", | ||
"description": "TypeScript definitions for imagemin-webp", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin-webp", | ||
}, | ||
"typesPublisherContentHash": "9aa8977bb9516f81ad5382bcc9323629e59d0ba6cbecd4a7bd41d8ef0cfe147a", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "93be5239ad056ca2ace413377597a07d1b62da8fcceb97dccb42ca6f00203b58", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 14:23:09 GMT | ||
* Last updated: Sun, 26 Dec 2021 11:31:21 GMT | ||
* Dependencies: [@types/imagemin](https://npmjs.com/package/@types/imagemin) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5422
92