@types/sharp
Advanced tools
Comparing version 0.29.2 to 0.29.3
@@ -627,2 +627,11 @@ // Type definitions for sharp 0.29 | ||
/** | ||
* Set a timeout for processing, in seconds. Use a value of zero to continue processing indefinitely, the default behaviour. | ||
* The clock starts when libvips opens an input image for processing. Time spent waiting for a libuv thread to become available is not included. | ||
* @param options Object with a `seconds` attribute between 0 and 3600 (number) | ||
* @throws {Error} Invalid options | ||
* @returns A sharp instance that can be used to chain operations | ||
*/ | ||
timeout(options: TimeoutOptions): Sharp; | ||
//#endregion | ||
@@ -750,2 +759,7 @@ | ||
interface TimeoutOptions { | ||
/** Number of seconds after which processing will be stopped (default 0, eg disabled) */ | ||
seconds: number; | ||
} | ||
interface SharpCounters { | ||
@@ -1282,2 +1296,3 @@ /** The number of tasks this module has queued waiting for libuv to provide a worker thread from its pool. */ | ||
tiff: AvailableFormatInfo; | ||
tif: AvailableFormatInfo; | ||
v: AvailableFormatInfo; | ||
@@ -1284,0 +1299,0 @@ webp: AvailableFormatInfo; |
{ | ||
"name": "@types/sharp", | ||
"version": "0.29.2", | ||
"version": "0.29.3", | ||
"description": "TypeScript definitions for sharp", | ||
@@ -55,4 +55,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharp", | ||
}, | ||
"typesPublisherContentHash": "fafa46d58aff3a3b5ea5b1beb17bb3429408c129bc5e69637667e842337d69a2", | ||
"typesPublisherContentHash": "ce1b6975a2720e199e08a5bab90866b38a7029199c8e9cb187a1310650433af4", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 14 Sep 2021 11:31:52 GMT | ||
* Last updated: Tue, 02 Nov 2021 13:01:22 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -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
64416
1172