@types/bluebird
Advanced tools
Comparing version 3.5.24 to 3.5.25
@@ -38,3 +38,4 @@ // Type definitions for bluebird 3.5 | ||
type CatchFilter<E> = (new (...args: any[]) => E) | ((error: E) => boolean) | (object & E); | ||
type Constructor<E> = new (...args: any[]) => E; | ||
type CatchFilter<E> = ((error: E) => boolean) | (object & E); | ||
type IterableItem<R> = R extends Iterable<infer U> ? U : never; | ||
@@ -89,68 +90,73 @@ type IterableOrNever<R> = Extract<R, Iterable<any>>; | ||
*/ | ||
catch<E1, E2, E3, E4, E5>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter4: CatchFilter<E4>, | ||
filter5: CatchFilter<E5>, | ||
onReject: (error: E1 | E2 | E3 | E4 | E5) => Resolvable<R>, | ||
): Bluebird<R>; | ||
catch<U, E1, E2, E3, E4, E5>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter4: CatchFilter<E4>, | ||
filter5: CatchFilter<E5>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
filter3: Constructor<E3>, | ||
filter4: Constructor<E4>, | ||
filter5: Constructor<E5>, | ||
onReject: (error: E1 | E2 | E3 | E4 | E5) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<E1, E2, E3, E4>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter4: CatchFilter<E4>, | ||
onReject: (error: E1 | E2 | E3 | E4) => Resolvable<R>, | ||
): Bluebird<R>; | ||
catch<U, E1, E2, E3, E4, E5>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
filter3: Constructor<E3> | CatchFilter<E3>, | ||
filter4: Constructor<E4> | CatchFilter<E4>, | ||
filter5: Constructor<E5> | CatchFilter<E5>, | ||
onReject: (error: E1 | E2 | E3 | E4 | E5) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<U, E1, E2, E3, E4>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter4: CatchFilter<E4>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
filter3: Constructor<E3>, | ||
filter4: Constructor<E4>, | ||
onReject: (error: E1 | E2 | E3 | E4) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<E1, E2, E3>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
onReject: (error: E1 | E2 | E3) => Resolvable<R>, | ||
): Bluebird<R>; | ||
catch<U, E1, E2, E3, E4>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
filter3: Constructor<E3> | CatchFilter<E3>, | ||
filter4: Constructor<E4> | CatchFilter<E4>, | ||
onReject: (error: E1 | E2 | E3 | E4) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<U, E1, E2, E3>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
filter3: Constructor<E3>, | ||
onReject: (error: E1 | E2 | E3) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<E1, E2>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
onReject: (error: E1 | E2) => Resolvable<R>, | ||
): Bluebird<R>; | ||
catch<U, E1, E2, E3>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
filter3: Constructor<E3> | CatchFilter<E3>, | ||
onReject: (error: E1 | E2 | E3) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<U, E1, E2>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
onReject: (error: E1 | E2) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<E1>( | ||
filter1: CatchFilter<E1>, | ||
onReject: (error: E1) => Resolvable<R>, | ||
): Bluebird<R>; | ||
catch<U, E1, E2>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
onReject: (error: E1 | E2) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<U, E1>( | ||
filter1: CatchFilter<E1>, | ||
filter1: Constructor<E1>, | ||
onReject: (error: E1) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
catch<U, E1>( | ||
// tslint:disable-next-line:unified-signatures | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
onReject: (error: E1) => Resolvable<U>, | ||
): Bluebird<U | R>; | ||
/** | ||
@@ -206,31 +212,62 @@ * This is a catch-all exception handler, shortcut for calling `.then(null, handler)` on this promise. | ||
tapCatch<E1, E2, E3, E4, E5>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter4: CatchFilter<E4>, | ||
filter5: CatchFilter<E5>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
filter3: Constructor<E3>, | ||
filter4: Constructor<E4>, | ||
filter5: Constructor<E5>, | ||
onReject: (error: E1 | E2 | E3 | E4 | E5) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1, E2, E3, E4, E5>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
filter3: Constructor<E3> | CatchFilter<E3>, | ||
filter4: Constructor<E4> | CatchFilter<E4>, | ||
filter5: Constructor<E5> | CatchFilter<E5>, | ||
onReject: (error: E1 | E2 | E3 | E4 | E5) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1, E2, E3, E4>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter4: CatchFilter<E4>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
filter3: Constructor<E3>, | ||
filter4: Constructor<E4>, | ||
onReject: (error: E1 | E2 | E3 | E4) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1, E2, E3, E4>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
filter3: Constructor<E3> | CatchFilter<E3>, | ||
filter4: Constructor<E4> | CatchFilter<E4>, | ||
onReject: (error: E1 | E2 | E3 | E4) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1, E2, E3>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter3: CatchFilter<E3>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
filter3: Constructor<E3>, | ||
onReject: (error: E1 | E2 | E3) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1, E2, E3>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
filter3: Constructor<E3> | CatchFilter<E3>, | ||
onReject: (error: E1 | E2 | E3) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1, E2>( | ||
filter1: CatchFilter<E1>, | ||
filter2: CatchFilter<E2>, | ||
filter1: Constructor<E1>, | ||
filter2: Constructor<E2>, | ||
onReject: (error: E1 | E2) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1, E2>( | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
filter2: Constructor<E2> | CatchFilter<E2>, | ||
onReject: (error: E1 | E2) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1>( | ||
filter1: CatchFilter<E1>, | ||
filter1: Constructor<E1>, | ||
onReject: (error: E1) => Resolvable<any>, | ||
): Bluebird<R>; | ||
tapCatch<E1>( | ||
// tslint:disable-next-line:unified-signatures | ||
filter1: Constructor<E1> | CatchFilter<E1>, | ||
onReject: (error: E1) => Resolvable<any>, | ||
): Bluebird<R>; | ||
@@ -382,31 +419,62 @@ /** | ||
catchReturn<U>( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter3: CatchFilter<Error>, | ||
filter4: CatchFilter<Error>, | ||
filter5: CatchFilter<Error>, | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
filter3: Constructor<Error>, | ||
filter4: Constructor<Error>, | ||
filter5: Constructor<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter3: CatchFilter<Error>, | ||
filter4: CatchFilter<Error>, | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
filter3: Constructor<Error> | CatchFilter<Error>, | ||
filter4: Constructor<Error> | CatchFilter<Error>, | ||
filter5: Constructor<Error> | CatchFilter<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter3: CatchFilter<Error>, | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
filter3: Constructor<Error>, | ||
filter4: Constructor<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
filter3: Constructor<Error> | CatchFilter<Error>, | ||
filter4: Constructor<Error> | CatchFilter<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: CatchFilter<Error>, | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
filter3: Constructor<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
filter3: Constructor<Error> | CatchFilter<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
filter1: Constructor<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
catchReturn<U>( | ||
// tslint:disable-next-line:unified-signatures | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
value: U, | ||
): Bluebird<R | U>; | ||
@@ -427,31 +495,62 @@ /** | ||
catchThrow( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter3: CatchFilter<Error>, | ||
filter4: CatchFilter<Error>, | ||
filter5: CatchFilter<Error>, | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
filter3: Constructor<Error>, | ||
filter4: Constructor<Error>, | ||
filter5: Constructor<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter3: CatchFilter<Error>, | ||
filter4: CatchFilter<Error>, | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
filter3: Constructor<Error> | CatchFilter<Error>, | ||
filter4: Constructor<Error> | CatchFilter<Error>, | ||
filter5: Constructor<Error> | CatchFilter<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter3: CatchFilter<Error>, | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
filter3: Constructor<Error>, | ||
filter4: Constructor<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: CatchFilter<Error>, | ||
filter2: CatchFilter<Error>, | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
filter3: Constructor<Error> | CatchFilter<Error>, | ||
filter4: Constructor<Error> | CatchFilter<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: CatchFilter<Error>, | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
filter3: Constructor<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
filter3: Constructor<Error> | CatchFilter<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: Constructor<Error>, | ||
filter2: Constructor<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
filter2: Constructor<Error> | CatchFilter<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
filter1: Constructor<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
catchThrow( | ||
// tslint:disable-next-line:unified-signatures | ||
filter1: Constructor<Error> | CatchFilter<Error>, | ||
reason: Error, | ||
): Bluebird<R>; | ||
@@ -458,0 +557,0 @@ /** |
{ | ||
"name": "@types/bluebird", | ||
"version": "3.5.24", | ||
"version": "3.5.25", | ||
"description": "TypeScript definitions for bluebird", | ||
@@ -14,2 +14,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -21,4 +22,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "886708ab10a8bb6421a5748563a83e005973395bfeff5765f04a8b35fa01a420", | ||
"typesPublisherContentHash": "84f287bba570664e8a87b6b30953506fa39d74685adb9b86fb0389dad064398f", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 27 Aug 2018 22:59:40 GMT | ||
* Last updated: Thu, 13 Dec 2018 21:05:14 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
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
54181
1127