@types/sharp
Advanced tools
Comparing version 0.21.1 to 0.21.2
@@ -6,2 +6,3 @@ // Type definitions for sharp 0.21 | ||
// Bradley Odell <https://github.com/BTOdell> | ||
// Jamie Woodbury <https://github.com/JamieWoodbury> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -115,2 +116,8 @@ // TypeScript Version: 2.1 | ||
/** | ||
* Ensure alpha channel, if missing. The added alpha channel will be fully opaque. This is a no-op if the image already has an alpha channel. | ||
* @returns A sharp instance that can be used to chain operations | ||
*/ | ||
ensureAlpha(): Sharp; | ||
/** | ||
* Extract a single channel from a multi-channel image. | ||
@@ -210,3 +217,3 @@ * @param channel zero-indexed band number to extract, or red, green or blue as alternative to 0, 1 or 2 respectively. | ||
*/ | ||
overlayWith(image: string | Buffer, options?: OverlayOptions): Sharp; | ||
overlayWith(image?: string | Buffer, options?: OverlayOptions): Sharp; | ||
@@ -606,5 +613,6 @@ //#endregion | ||
/** | ||
* By default apply a "best effort" to decode images, even if the data is corrupt or invalid. | ||
* Set this flag to true if you'd rather halt processing and raise an error when loading invalid images. | ||
* (optional, default false) | ||
* By default halt processing and raise an error when loading invalid images. | ||
* Set this flag to false if you'd rather apply a "best effort" to decode images, | ||
* even if the data is corrupt or invalid. (optional, default true) | ||
* (optional, default true) | ||
*/ | ||
@@ -788,2 +796,12 @@ failOnError?: boolean; | ||
force?: boolean; | ||
/** use the lowest number of colours needed to achieve given quality, requires libimagequant (optional, default `100`) */ | ||
quality?: number; | ||
/** Quantise to a palette-based image with alpha transparency support, requires libimagequant (optional, default false) */ | ||
palette?: boolean; | ||
/** Maximum number of palette entries, requires libimagequant (optional, default 256) */ | ||
colours?: number; | ||
/** Alternative Spelling of "colours". Maximum number of palette entries, requires libimagequant (optional, default 256) */ | ||
colors?: number; | ||
/** Level of Floyd-Steinberg error diffusion, requires libimagequant (optional, default 1.0) */ | ||
dither?: number; | ||
} | ||
@@ -790,0 +808,0 @@ |
{ | ||
"name": "@types/sharp", | ||
"version": "0.21.1", | ||
"version": "0.21.2", | ||
"description": "TypeScript definitions for sharp", | ||
@@ -21,2 +21,7 @@ "license": "MIT", | ||
"githubUsername": "BTOdell" | ||
}, | ||
{ | ||
"name": "Jamie Woodbury", | ||
"url": "https://github.com/JamieWoodbury", | ||
"githubUsername": "JamieWoodbury" | ||
} | ||
@@ -34,4 +39,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "bb84b0f9acae25113ef1c5af09f2ee753dde815ed3ea95a5696efd354751dc95", | ||
"typesPublisherContentHash": "8862ac4773ac01b286f3497f7c601b49edea1ebf0c6b1e621545d1c6d86ddb3e", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for sharp (https://github.com/lovell/sharp). | ||
This package contains type definitions for sharp ( https://github.com/lovell/sharp ). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Fri, 18 Jan 2019 20:56:04 GMT | ||
* Last updated: Thu, 24 Jan 2019 23:33:55 GMT | ||
* Dependencies: @types/node | ||
@@ -18,2 +18,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by François Nguyen <https://github.com/lith-light-g>, Wooseop Kim <https://github.com/wooseopkim>, Bradley Odell <https://github.com/BTOdell>. | ||
These definitions were written by François Nguyen <https://github.com/lith-light-g>, Wooseop Kim <https://github.com/wooseopkim>, Bradley Odell <https://github.com/BTOdell>, Jamie Woodbury <https://github.com/JamieWoodbury>. |
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
48957
896