diff --git a/ably.d.ts b/ably.d.ts index 903425cc71..1627a9b540 100644 --- a/ably.d.ts +++ b/ably.d.ts @@ -730,7 +730,7 @@ declare namespace Types { /** * A generic Ably error object that contains an Ably-specific status code, and a generic status code. Errors returned from the Ably server are compatible with the `ErrorInfo` structure and should result in errors that inherit from `ErrorInfo`. */ - interface ErrorInfo { + interface ErrorInfo extends Error { /** * Ably [error code](https://github.com/ably/ably-common/blob/main/protocol/errors.json). */