Bug Description
The undici error types provided here do not correspond to all errors declared here.
Reproducible By
A couple of examples:
- The
ConnectTimeoutError is not available in the errors type definitions
- Using
SocketTimeoutError in a type check like
if (error instanceof errors.SocketTimeoutError)
produces an right-hand side of 'instanceof' is not an object error.
Expected Behavior
All core error types are defined.
Environment
macOS 13.1, node v18.5.0
Bug Description
The undici error types provided here do not correspond to all errors declared here.
Reproducible By
A couple of examples:
ConnectTimeoutErroris not available in theerrorstype definitionsSocketTimeoutErrorin a type check likeright-hand side of 'instanceof' is not an objecterror.Expected Behavior
All core error types are defined.
Environment
macOS 13.1, node v18.5.0