@types/sharp
Advanced tools
Comparing version 0.17.7 to 0.17.8
// Type definitions for sharp 0.17 | ||
// Project: https://github.com/lovell/sharp | ||
// Definitions by: François Nguyen <https://github.com/lith-light-g> | ||
// Wooseop Kim <https://github.com/wooseopkim> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -362,6 +363,13 @@ | ||
* Write output to a Buffer. JPEG, PNG, WebP, and RAW output are supported. By default, the format will match the input image, except GIF and SVG input which become PNG output. | ||
* @param options resolve options | ||
* @returns A promise that fulfills with the resulting Buffer | ||
*/ | ||
toBuffer(): Promise<Buffer>; | ||
toBuffer(options?: { resolveWithObject: false }): Promise<Buffer>; | ||
/** | ||
* Write output to a Buffer. JPEG, PNG, WebP, and RAW output are supported. By default, the format will match the input image, except GIF and SVG input which become PNG output. | ||
* @param options resolve options | ||
* @returns A promise that fulfills with an object containing the Buffer data and an info object containing the output image format, size (bytes), width, height and channels | ||
*/ | ||
toBuffer(options: { resolveWithObject: true }): Promise<{ data: Buffer, info: OutputInfo }>; | ||
/** | ||
* Use these JPEG options for output image. | ||
@@ -368,0 +376,0 @@ * @param options Output options. |
{ | ||
"name": "@types/sharp", | ||
"version": "0.17.7", | ||
"version": "0.17.8", | ||
"description": "TypeScript definitions for sharp", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "lith-light-g" | ||
}, | ||
{ | ||
"name": "Wooseop Kim", | ||
"url": "https://github.com/wooseopkim", | ||
"githubUsername": "wooseopkim" | ||
} | ||
@@ -23,4 +28,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "f227093fd170386a47dfa8f6ed8fdc0e538a06ffc892e7e07d3f145fc1bfe132", | ||
"typesPublisherContentHash": "0dbce2c89fe7cce8f9e617b9b7665d0ca0c2a30109775190556bd14d4f8ab963", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 09 Mar 2018 00:09:08 GMT | ||
* Last updated: Mon, 09 Apr 2018 17:46:20 GMT | ||
* Dependencies: stream, node | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by François Nguyen <https://github.com/lith-light-g>. | ||
These definitions were written by François Nguyen <https://github.com/lith-light-g>, Wooseop Kim <https://github.com/wooseopkim>. |
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
36351
685