@types/sharp
Advanced tools
Comparing version 0.23.0 to 0.23.1
@@ -589,2 +589,11 @@ // Type definitions for sharp 0.23 | ||
/** | ||
* Shorthand for resize(null, null, options); | ||
* | ||
* @param options resize options | ||
* @throws {Error} Invalid parameters | ||
* @returns A sharp instance that can be used to chain operations | ||
*/ | ||
resize(options: ResizeOptions): Sharp; | ||
/** | ||
* Extends/pads the edges of the image with the provided background colour. | ||
@@ -933,2 +942,4 @@ * This operation will always occur after resizing and extraction, if any. | ||
angle?: number; | ||
/** background colour, parsed by the color module, defaults to white without transparency. (optional, default {r:255,g:255,b:255,alpha:1}) */ | ||
background?: string | RGBA; | ||
/** How deep to make the pyramid, possible values are "onepixel", "onetile" or "one" (default based on layout) */ | ||
@@ -935,0 +946,0 @@ depth?: string; |
{ | ||
"name": "@types/sharp", | ||
"version": "0.23.0", | ||
"version": "0.23.1", | ||
"description": "TypeScript definitions for sharp", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -45,4 +45,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "b4669b495e000a50a9fee9429ee95581815fe32bac313415061f8de4c2392f8b", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "9f9d72b1a283b07b666cead99338068a6ca0b64a086522e2fdb0aa336a199550", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharp | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharp. | ||
Additional Details | ||
* Last updated: Tue, 15 Oct 2019 18:51:09 GMT | ||
* Dependencies: @types/node | ||
### Additional Details | ||
* Last updated: Wed, 04 Dec 2019 00:54:06 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* 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>, Jamie Woodbury <https://github.com/JamieWoodbury>, and Floris de Bijl <https://github.com/Fdebijl>. | ||
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), and Floris de Bijl (https://github.com/Fdebijl). |
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
51442
936