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 as unknown instead, and use an instanceof check to ensure they're errors before accessing things like .message.
To get us building with TypeScript 4.4, I went ahead and use
anyas the type for our caught errors (since that's the behavior pre-4.4). However, we should probably annotate those asunknowninstead, and use aninstanceofcheck to ensure they're errors before accessing things like.message.