You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
It would be helpful to be able to check in angular's error handler what the original error is. In order to safely check what the original error is, it would be helpful to have compiler checking on UncaughtPromiseError. Something like:
import{UncaughtPromiseError}from'@angular/zone';import{ErrorHandler}from'@angular/core';exportclassMyErrorHandlerimplementsErrorHandler{handleError(error: Error|UncaughtPromiseError){if(error.rejection){// do something with the original error}}}
Zone is not exposed as an angular npm module, so that might also be a requirement.
Right now the only way to accomplish this is to duplicate the UncaughtPromiseError interface, which is error prone.