Properly annotate caught errors as unknown
#1615
Labels
stale
For marking issues as stale. Labeled issues will be closed soon if label is not removed.
unknown
#1615
To get us building with TypeScript 4.4, I went ahead and use
any
as the type for our caught errors (since that's the behavior pre-4.4). However, we should probably annotate those asunknown
instead, and use aninstanceof
check to ensure they're errors before accessing things like.message
.The text was updated successfully, but these errors were encountered: