mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-01 22:14:03 -04:00
[PR #125] fix: Specify argument in Client "error" event to be Error instead of any. #121
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stoatchat/javascript-client-sdk/pull/125
Author: @Taureon
Created: 2/12/2026
Status: 🔄 Open
Base:
main← Head:patch-1📝 Commits (1)
4e25a1bClient.ts: change Events.error callback argument from any to Error📊 Changes
1 file changed (+1 additions, -2 deletions)
View changed files
📝
src/Client.ts(+1 -2)📄 Description
I don't see a reason for this to be
any, so I am updating this to be anErrorinstead for the type system.Only location where the
"error"event was emitted (I think): https://github.com/stoatchat/javascript-client-sdk/blob/cdf406094b9b81c3ff285b14ed97fb3d138e3061/src/Client.ts#L263Callback argument type where that
"error"event comes from: https://github.com/stoatchat/javascript-client-sdk/blob/cdf406094b9b81c3ff285b14ed97fb3d138e3061/src/events/EventClient.ts#L70🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.