From ffe39696ab1b868ca4c15eac58051221e58a3ab3 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Wed, 26 Jun 2024 12:49:39 +0100 Subject: [PATCH] types: ErrorInfo should implement Error --- ably.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ably.d.ts b/ably.d.ts index b98265c5f..2523d16cc 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 implements Error { /** * Ably [error code](https://github.com/ably/ably-common/blob/main/protocol/errors.json). */