From 4e25a1b2331535a6f4cf034a516388499aa2af7f Mon Sep 17 00:00:00 2001 From: Taureon <45183108+Taureon@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:12:55 +0100 Subject: [PATCH] Client.ts: change Events.error callback argument from any to Error Only location where the "error" event was emitted: https://github.com/stoatchat/javascript-client-sdk/blob/cdf406094b9b81c3ff285b14ed97fb3d138e3061/src/Client.ts#L263 Callback argument type where that "error" event comes from: https://github.com/stoatchat/javascript-client-sdk/blob/main/src/events/EventClient.ts#L70 Signed-off-by: Taureon <45183108+Taureon@users.noreply.github.com> --- src/Client.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index 34d8091e..8a501c3a 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -42,8 +42,7 @@ export type Session = { _id: string; token: string; user_id: string } | string; * Events provided by the client */ export type Events = { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - error: [error: any]; + error: [error: Error]; connected: []; connecting: [];