Moved bluebird to the top level. (#11746)

This commit is contained in:
Daniel Rosenwasser 2016-10-05 15:44:43 -07:00 committed by Mohamed Hegazy
parent f993329fe3
commit 63762bcff0

13
bluebird/index.d.ts vendored
View File

@ -31,13 +31,7 @@
* THE SOFTWARE.
*/
// Generated by typings
// Source: bluebird.d.ts
declare module 'bluebird' {
// Type definitions for Bluebird v3.x.x
// Project: http://bluebirdjs.com
class Bluebird<R> implements Bluebird.Thenable<R>, Bluebird.Inspection<R> {
declare class Bluebird<R> implements Bluebird.Thenable<R>, Bluebird.Inspection<R> {
/**
* 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.
* If promise cancellation is enabled, passed in function will receive one more function argument `onCancel` that allows to register an optional cancellation callback.
@ -631,7 +625,7 @@ class Bluebird<R> implements Bluebird.Thenable<R>, Bluebird.Inspection<R> {
}): void;
}
namespace Bluebird {
declare namespace Bluebird {
export interface ConcurrencyOption {
concurrency: number;
}
@ -778,5 +772,4 @@ namespace Bluebird {
export function setScheduler(scheduler: (callback: (...args: any[]) => void) => void): void;
}
export = Bluebird;
}
export = Bluebird;