declare module angular { interface IPromise { then(Function): IPromise; then(success: Function, Function): IPromise; then(success: Function, error: Function, Function): IPromise; catch(Function): IPromise; finally(Function): IPromise; } } interface Reflect { decorate(decorators: any[], target: any, key: any, desc: any): any; } declare var Reflect: Reflect;