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
User needs to cast the error to Error, however, it does not seem that the code would fail if the error were any other type, so perhaps the typescript d.ts can be changed?
The text was updated successfully, but these errors were encountered:
When trying to use this library
TypeScript complains because
error
is of typeunknown
rather thanError
Because of changes in TypeScript 4.4
https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#use-unknown-catch-variables
User needs to cast the
error
to Error, however, it does not seem that the code would fail if the error were any other type, so perhaps the typescript d.ts can be changed?The text was updated successfully, but these errors were encountered: