Skip to content

Properly annotate caught errors as unknown #1615

Description

@dstaley

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.

Metadata

Metadata

Assignees

Labels

staleFor marking issues as stale. Labeled issues will be closed soon if label is not removed.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions