From 02a23a0f8a770e6a347e23257ace372a5aebf88d 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..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). */