PromiseExtender

shared/extendPromise. PromiseExtender

Helper class that creates a proxy for a Promise in order to add custom properties.

The only reason this class exists is so it can "scope" the necessary methods to extend Promise and avoid workarounds in order to declare them, as they need to call themselves recursively.