feat(): include flag for parsed WS API responses

This commit is contained in:
tiagosiebler
2025-01-16 20:19:59 +00:00
parent 3931c5e947
commit 56e945f591
2 changed files with 3 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ interface WSClientEventMap<WsKey extends string> {
export interface EmittableEvent<TEvent = any> {
eventType: 'response' | 'update' | 'exception' | 'authenticated';
event: TEvent;
isWSAPIResponse?: boolean;
}
// Type safety for on and emit handlers: https://stackoverflow.com/a/61609010/880837