From 63762bcff0cfc99e6dfb1b6d9a070ab5288741fa Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 5 Oct 2016 15:44:43 -0700 Subject: [PATCH] Moved bluebird to the top level. (#11746) --- bluebird/index.d.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/bluebird/index.d.ts b/bluebird/index.d.ts index 3dc66b78f0..10077179e8 100644 --- a/bluebird/index.d.ts +++ b/bluebird/index.d.ts @@ -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 implements Bluebird.Thenable, Bluebird.Inspection { +declare class Bluebird implements Bluebird.Thenable, Bluebird.Inspection { /** * 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 implements Bluebird.Thenable, Bluebird.Inspection { }): 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; \ No newline at end of file