Deferred that extends Promise

Issue How to implement a Deferred promise that extends Promise? It’s important to extend Promise for type-safe usage where a typical Promise is expected. Following implementation export class Deferred<T> extends Promise<T> { public _resolveSelf; public _rejectSelf; constructor() { super( (resolve,

Continue reading