diff --git a/ably.d.ts b/ably.d.ts index b98265c5f..9108128ce 100644 --- a/ably.d.ts +++ b/ably.d.ts @@ -2769,7 +2769,7 @@ export declare class Realtime implements RealtimeClient { /** * 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`. */ -export declare class ErrorInfo { +export declare class ErrorInfo extends Error { /** * Ably [error code](https://github.com/ably/ably-common/blob/main/protocol/errors.json). */