Working on an Angular 1 application, and trying to extend my promises with an 'abort' function. When I try to add abort to deferred.promise I get an abort does not exist on type IPromise<{}> error, obviously.'
How do I tell the property of this object to be a new class inline so that I can do this?
deferred.promise.abort = function() {
deferred.resolve();
};