/**@internal * */ export class Deferred { public promise: Promise; public resolve: Function; public reject: Function; constructor() { const _this = this; this.promise = new Promise(function(resolve, reject) { _this.resolve = resolve; _this.reject = reject }); } }