diff --git a/bluebird/bluebird-1.0.d.ts b/bluebird/bluebird-1.0.d.ts index 2a43600d90..7979e8b6f8 100644 --- a/bluebird/bluebird-1.0.d.ts +++ b/bluebird/bluebird-1.0.d.ts @@ -319,9 +319,9 @@ declare class Promise implements Promise.Thenable { * * Alias for `attempt();` for compatibility with earlier ECMAScript version. */ - static try(fn: () => R|Promise.Thenable, args?: any[], ctx?: any): Promise; + static try(fn: () => R | Promise.Thenable, args?: any[], ctx?: any): Promise; - static attempt(fn: () => R|Promise.Thenable, args?: any[], ctx?: any): Promise; + static attempt(fn: () => R | Promise.Thenable, args?: any[], ctx?: any): Promise; /** * Returns a new function that wraps the given function `fn`. The new function will always return a promise that is fulfilled with the original functions return values or rejected with thrown exceptions from the original function. diff --git a/bluebird/bluebird.d.ts b/bluebird/bluebird.d.ts index a3cb988139..7a53d4e07b 100644 --- a/bluebird/bluebird.d.ts +++ b/bluebird/bluebird.d.ts @@ -51,15 +51,9 @@ interface PromiseConstructor { * * Alias for `attempt();` for compatibility with earlier ECMAScript version. */ -<<<<<<< HEAD - try(fn: () => T|PromiseLike, args?: any[], ctx?: any): Promise; - - attempt(fn: () => T|PromiseLike, args?: any[], ctx?: any): Promise; -======= try(fn: () => T | PromiseLike, args?: any[], ctx?: any): Promise; attempt(fn: () => T | PromiseLike, args?: any[], ctx?: any): Promise; ->>>>>>> 72f0056f69f9a2290d2589c1a692896d24406928 /** * Returns a new function that wraps the given function `fn`. The new function will always return a promise that is fulfilled with the original functions return values or rejected with thrown exceptions from the original function.