diff --git a/tests/cases/compiler/bluebirdStaticThis.ts b/tests/cases/compiler/bluebirdStaticThis.ts index 55b1d0022d8..21b4d244dec 100644 --- a/tests/cases/compiler/bluebirdStaticThis.ts +++ b/tests/cases/compiler/bluebirdStaticThis.ts @@ -2,7 +2,7 @@ // and all the comments. // Then it adds explicit `this` arguments to the static members. // Tests by: Bart van der Schoor -declare class Promise implements Promise.Thenable { +export declare class Promise implements Promise.Thenable { constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable) => void, reject: (error: any) => void) => void); static try(dit: typeof Promise, fn: () => Promise.Thenable, args?: any[], ctx?: any): Promise; static try(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise; @@ -108,7 +108,7 @@ declare class Promise implements Promise.Thenable { static filter(dit: typeof Promise, values: R[], filterer: (item: R, index: number, arrayLength: number) => boolean): Promise; } -declare module Promise { +export declare module Promise { export interface Thenable { then(onFulfilled: (value: R) => Thenable, onRejected: (error: any) => Thenable): Thenable; then(onFulfilled: (value: R) => Thenable, onRejected?: (error: any) => U): Thenable; @@ -118,9 +118,6 @@ declare module Promise { } -declare module 'bluebird' { - export = Promise; -} interface Foo { a: number; b: string; diff --git a/tests/cases/compiler/promiseIdentity.ts b/tests/cases/compiler/promiseIdentity.ts index d568d75dfaa..c9d7beabbdb 100644 --- a/tests/cases/compiler/promiseIdentity.ts +++ b/tests/cases/compiler/promiseIdentity.ts @@ -1,4 +1,4 @@ -interface IPromise { +export interface IPromise { then(callback: (x: T) => IPromise): IPromise; } interface Promise { diff --git a/tests/cases/compiler/promiseIdentity2.ts b/tests/cases/compiler/promiseIdentity2.ts index b60cf92c124..4454df6875b 100644 --- a/tests/cases/compiler/promiseIdentity2.ts +++ b/tests/cases/compiler/promiseIdentity2.ts @@ -1,7 +1,7 @@ -interface IPromise { +export interface IPromise { then(callback: (x: T) => IPromise): IPromise; } -interface Promise { +export interface Promise { then(callback: (x: T) => Promise): Promise; } diff --git a/tests/cases/compiler/promiseIdentityWithAny.ts b/tests/cases/compiler/promiseIdentityWithAny.ts index 7240eaca546..4cdc7c51b57 100644 --- a/tests/cases/compiler/promiseIdentityWithAny.ts +++ b/tests/cases/compiler/promiseIdentityWithAny.ts @@ -1,7 +1,7 @@ -interface IPromise { +export interface IPromise { then(callback: (x: T) => IPromise): IPromise; } -interface Promise { +export interface Promise { then(callback: (x: T) => Promise): Promise; } diff --git a/tests/cases/compiler/promiseIdentityWithAny2.ts b/tests/cases/compiler/promiseIdentityWithAny2.ts index 0572caeb7fd..e7a69077d03 100644 --- a/tests/cases/compiler/promiseIdentityWithAny2.ts +++ b/tests/cases/compiler/promiseIdentityWithAny2.ts @@ -1,4 +1,4 @@ -interface IPromise { +export interface IPromise { then(callback: (x: T) => IPromise): IPromise; } interface Promise { diff --git a/tests/cases/compiler/promiseIdentityWithConstraints.ts b/tests/cases/compiler/promiseIdentityWithConstraints.ts index fc0368cbf79..af94a6998bf 100644 --- a/tests/cases/compiler/promiseIdentityWithConstraints.ts +++ b/tests/cases/compiler/promiseIdentityWithConstraints.ts @@ -1,7 +1,7 @@ -interface IPromise { +export interface IPromise { then(callback: (x: T) => IPromise): IPromise; } -interface Promise { +export interface Promise { then(callback: (x: T) => Promise): Promise; }