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 Jun 14, 2026. It is now read-only.
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?
When trying to use this library
TypeScript complains because
erroris of typeunknownrather thanErrorBecause of changes in TypeScript 4.4
https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#use-unknown-catch-variables
User needs to cast the
errorto 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?