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
It's suggested that something like this could solve the issue but I haven't been able to get that working myself:
// Promise.d.tsinterfacePromise<T>{/** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */catch<TResult=never>(onrejected?: ((reason: unknown)=>TResult|PromiseLike<TResult>)|undefined|null,): Promise<T|TResult>;}
This is a feature request. Hope that
catch
method can be typesafe.The text was updated successfully, but these errors were encountered: