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
Review my code and apply a helpful tip from @bk201- from one of his recent PR-reviews:
In JS you have never be sure that error is instance of Error. It might be string, number, object, any type. I prefer use the following code taking into consideration that TS is type paranoid
const message = error instanceof Error ? error.message : String(error)
The text was updated successfully, but these errors were encountered:
Review my code and apply a helpful tip from @bk201- from one of his recent PR-reviews:
The text was updated successfully, but these errors were encountered: