@types/bluebird
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -252,2 +252,33 @@ // Type definitions for bluebird 3.5.0 | ||
/** | ||
* Convenience method for: | ||
* | ||
* <code> | ||
* .catch(function() { | ||
* return value; | ||
* }); | ||
* </code> | ||
* | ||
* in the case where `value` doesn't change its value. That means `value` is bound at the time of calling `.catchReturn()` | ||
*/ | ||
catchReturn<U>(value: U): Bluebird<U>; | ||
catchReturn<U>(predicate: (error: any) => boolean, value: U): Bluebird<U | R>; | ||
catchReturn<E extends Error, U>(ErrorClass: new (...args: any[]) => E, value: U): Bluebird<U | R>; | ||
catchReturn<U>(predicate: Object, value: U): Bluebird<U | R>; | ||
/** | ||
* Convenience method for: | ||
* | ||
* <code> | ||
* .catch(function() { | ||
* throw reason; | ||
* }); | ||
* </code> | ||
* Same limitations apply as with `.catchReturn()`. | ||
*/ | ||
catchThrow(reason: Error): Bluebird<R>; | ||
catchThrow(predicate: (error: any) => boolean, reason: Error): Bluebird<R>; | ||
catchThrow<E extends Error, U>(ErrorClass: new (...args: any[]) => E, reason: Error): Bluebird<R>; | ||
catchThrow(predicate: Object, reason: Error): Bluebird<R>; | ||
/** | ||
* Convert to String. | ||
@@ -254,0 +285,0 @@ */ |
{ | ||
"name": "@types/bluebird", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "TypeScript definitions for bluebird", | ||
@@ -20,4 +20,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "4b1aab4867e95bf7cae439db9db825f3fc4d4b5d4ac8d59c7e83b64e686eed4c", | ||
"typesPublisherContentHash": "5009cc2c4dd2623c370d1e305863bfb2f05e782f9a8a67a7e37893fad172ad2a", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 10 Mar 2017 06:07:39 GMT | ||
* Last updated: Tue, 21 Mar 2017 00:35:43 GMT | ||
* Dependencies: none | ||
@@ -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
46239
728