Skip to content

Commit

Permalink
Merge pull request #1805 from ably/errorinfo-implement-error
Browse files Browse the repository at this point in the history
types: ErrorInfo should implement Error
  • Loading branch information
AndyTWF authored Jun 26, 2024
2 parents 879da75 + 02a23a0 commit 306d9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/
Expand Down

0 comments on commit 306d9ec

Please sign in to comment.