// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/14fe4313f4a1cf69add3505a2ab1dbc690dc2116/promise/promise.d.ts declare module 'promise' { export = Promise; } declare var Promise: Promise.Ipromise; declare namespace Promise { export interface Ipromise { new (resolver: (resolve: (value: T) => void, reject: (reason: any) => void) => void): IThenable; resolve: (value: T) => IThenable; reject: (value: T) => IThenable; all: (array: Array>) => IThenable>; denodeify: (fn: Function) => IThenable; nodeify: (fn: Function) => Function; } export interface IThenable { then(onFulfilled?: (value: T) => IThenable|R, onRejected?: (error: any) => IThenable|R): IThenable; catch(onRejected?: (error: any) => IThenable|R): IThenable; done(onFulfilled?: (value: T) => IThenable|R, onRejected?: (error: any) => IThenable|R): IThenable; nodeify(callback: Function): IThenable; } }