@types/bluebird
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -19,7 +19,7 @@ // Type definitions for bluebird 1.0.0 | ||
declare class Promise<R> implements Promise.Thenable<R> { | ||
declare class Promise<T> implements Promise.Thenable<T> { | ||
/** | ||
* Create a new promise. The passed in function will receive functions `resolve` and `reject` as its arguments which can be called to seal the fate of the created promise. | ||
*/ | ||
constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (error: any) => void) => void); | ||
constructor(callback: (resolve: (thenableOrResult: T | Promise.Thenable<T>) => void, reject: (error: any) => void) => void); | ||
@@ -29,6 +29,6 @@ /** | ||
*/ | ||
then<U>(onFulfill: (value: R) => Promise.Thenable<U>, onReject: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
then<U>(onFulfill: (value: R) => Promise.Thenable<U>, onReject?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
then<U>(onFulfill: (value: R) => U, onReject: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
then<U>(onFulfill?: (value: R) => U, onReject?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
then<U>(onFulfill: (value: T) => Promise.Thenable<U>, onReject: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
then<U>(onFulfill: (value: T) => Promise.Thenable<U>, onReject?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
then<U>(onFulfill: (value: T) => U, onReject: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
then<U>(onFulfill?: (value: T) => U, onReject?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
@@ -76,9 +76,9 @@ /** | ||
*/ | ||
finally(handler: (value: R) => Promise.Thenable<R>): Promise<R>; | ||
finally(handler: (value: R) => R): Promise<R>; | ||
finally(handler: (value: R) => void): Promise<R>; | ||
finally(handler: (value: T) => Promise.Thenable<T>): Promise<T>; | ||
finally(handler: (value: T) => T): Promise<T>; | ||
finally(handler: (value: T) => void): Promise<T>; | ||
lastly(handler: (value: R) => Promise.Thenable<R>): Promise<R>; | ||
lastly(handler: (value: R) => R): Promise<R>; | ||
lastly(handler: (value: R) => void): Promise<R>; | ||
lastly(handler: (value: T) => Promise.Thenable<T>): Promise<T>; | ||
lastly(handler: (value: T) => T): Promise<T>; | ||
lastly(handler: (value: T) => void): Promise<T>; | ||
@@ -88,3 +88,3 @@ /** | ||
*/ | ||
bind(thisArg: any): Promise<R>; | ||
bind(thisArg: any): Promise<T>; | ||
@@ -94,6 +94,6 @@ /** | ||
*/ | ||
done<U>(onFulfilled: (value: R) => Promise.Thenable<U>, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
done<U>(onFulfilled: (value: R) => Promise.Thenable<U>, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
done<U>(onFulfilled: (value: R) => U, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
done<U>(onFulfilled?: (value: R) => U, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
done<U>(onFulfilled: (value: T) => Promise.Thenable<U>, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
done<U>(onFulfilled: (value: T) => Promise.Thenable<U>, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
done<U>(onFulfilled: (value: T) => U, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
done<U>(onFulfilled?: (value: T) => U, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
@@ -103,3 +103,3 @@ /** | ||
*/ | ||
progressed(handler: (note: any) => any): Promise<R>; | ||
progressed(handler: (note: any) => any): Promise<T>; | ||
@@ -109,3 +109,3 @@ /** | ||
*/ | ||
delay(ms: number): Promise<R>; | ||
delay(ms: number): Promise<T>; | ||
@@ -117,3 +117,3 @@ /** | ||
*/ | ||
timeout(ms: number, message?: string): Promise<R>; | ||
timeout(ms: number, message?: string): Promise<T>; | ||
@@ -124,3 +124,3 @@ /** | ||
*/ | ||
nodeify(callback: (err: any, value?: R) => void): Promise<R>; | ||
nodeify(callback: (err: any, value?: T) => void): Promise<T>; | ||
nodeify(...sink: any[]): void; | ||
@@ -131,3 +131,3 @@ | ||
*/ | ||
cancellable(): Promise<R>; | ||
cancellable(): Promise<T>; | ||
@@ -149,6 +149,6 @@ /** | ||
*/ | ||
fork<U>(onFulfilled: (value: R) => Promise.Thenable<U>, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
fork<U>(onFulfilled: (value: R) => Promise.Thenable<U>, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
fork<U>(onFulfilled: (value: R) => U, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
fork<U>(onFulfilled?: (value: R) => U, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
fork<U>(onFulfilled: (value: T) => Promise.Thenable<U>, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
fork<U>(onFulfilled: (value: T) => Promise.Thenable<U>, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
fork<U>(onFulfilled: (value: T) => U, onRejected: (error: any) => Promise.Thenable<U>, onProgress?: (note: any) => any): Promise<U>; | ||
fork<U>(onFulfilled?: (value: T) => U, onRejected?: (error: any) => U, onProgress?: (note: any) => any): Promise<U>; | ||
@@ -158,3 +158,3 @@ /** | ||
*/ | ||
uncancellable(): Promise<R>; | ||
uncancellable(): Promise<T>; | ||
@@ -189,3 +189,3 @@ /** | ||
*/ | ||
inspect(): Promise.Inspection<R>; | ||
inspect(): Promise.Inspection<T>; | ||
@@ -245,4 +245,4 @@ /** | ||
*/ | ||
throw(reason: Error): Promise<R>; | ||
thenThrow(reason: Error): Promise<R>; | ||
throw(reason: Error): Promise<T>; | ||
thenThrow(reason: Error): Promise<T>; | ||
@@ -249,0 +249,0 @@ /** |
{ | ||
"name": "@types/bluebird", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "TypeScript definitions for bluebird", | ||
@@ -20,4 +20,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "d027ea45ed59231d43134e4102ebc94471e46bd9ec64ec102c5c5d219a630c8d", | ||
"typesPublisherContentHash": "99a3105fa1cc4c3168448b340000d85fa848c53b3cf68503be683f24aa152b55", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/bluebird/v1 | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bluebird/v1 | ||
Additional Details | ||
* Last updated: Tue, 28 Feb 2017 14:21:55 GMT | ||
* Last updated: Wed, 19 Apr 2017 21:19:05 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: Promise |
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
37025
4