@types/bluebird
Advanced tools
Comparing version 3.0.37 to 3.5.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for bluebird 3.0.0 | ||
// Type definitions for bluebird 3.5.0 | ||
// Project: https://github.com/petkaantonov/bluebird | ||
@@ -71,6 +71,6 @@ // Definitions by: Leonard Hecker <https://github.com/lhecker> | ||
caught(predicate: (error: any) => boolean, onReject: (error: any) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
catch<U>(predicate: (error: any) => boolean, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>; | ||
caught<U>(predicate: (error: any) => boolean, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>; | ||
catch<E extends Error>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
@@ -81,6 +81,6 @@ caught<E extends Error>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
caught<E extends Error, U>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => U | Bluebird.Thenable<U>): Bluebird<U | R>; | ||
catch(predicate: Object, onReject: (error: any) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
caught(predicate: Object, onReject: (error: any) => R | Bluebird.Thenable<R> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
catch<U>(predicate: Object, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>; | ||
@@ -120,2 +120,10 @@ caught<U>(predicate: Object, onReject: (error: any) => U | Bluebird.Thenable<U>): Bluebird<U | R>; | ||
/** | ||
* Like `.catch()` but rethrows the error | ||
*/ | ||
tapCatch<U>(onReject: (error?: any) => U | Bluebird.Thenable<U> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
tapCatch<U, E extends Error>(ErrorClass: new (...args: any[]) => E, onReject: (error: E) => U | Bluebird.Thenable<U> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
tapCatch<U>(predicate: (error?: any) => boolean, onReject: (error?: any) => U | Bluebird.Thenable<U> | void | Bluebird.Thenable<void>): Bluebird<R>; | ||
/** | ||
* Same as calling `Promise.delay(ms, this)`. | ||
@@ -327,3 +335,3 @@ */ | ||
* Basically sugar for doing: somePromise.catch(function(){}); | ||
* | ||
* | ||
* Which is needed in case error handlers are attached asynchronously to the promise later, which would otherwise result in premature unhandled rejection reporting. | ||
@@ -638,2 +646,7 @@ */ | ||
}): void; | ||
/** | ||
* The version number of the library | ||
*/ | ||
static version: string; | ||
} | ||
@@ -640,0 +653,0 @@ |
{ | ||
"name": "@types/bluebird", | ||
"version": "3.0.37", | ||
"version": "3.5.0", | ||
"description": "TypeScript definitions for bluebird", | ||
"license": "MIT", | ||
"author": "Leonard Hecker <https://github.com/lhecker>", | ||
"contributors": [ | ||
{ | ||
"name": "Leonard Hecker", | ||
"url": "https://github.com/lhecker" | ||
} | ||
], | ||
"main": "", | ||
@@ -15,4 +20,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "f9312aa6f1f109e52dca067f860c56dc23ce58fcde07d377b6f0c29a9a832d3b", | ||
"typesPublisherContentHash": "4b1aab4867e95bf7cae439db9db825f3fc4d4b5d4ac8d59c7e83b64e686eed4c", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,5 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 29 Dec 2016 16:51:17 GMT | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Last updated: Fri, 10 Mar 2017 06:07:39 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
@@ -16,0 +15,0 @@ |
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
45199
3
699
17