mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Moved bluebird to the top level. (#11746)
This commit is contained in:
parent
f993329fe3
commit
63762bcff0
13
bluebird/index.d.ts
vendored
13
bluebird/index.d.ts
vendored
@ -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;
|
||||
Loading…
Reference in New Issue
Block a user