feat: export package to help api consumers (#1624)

This commit is contained in:
Alex Christoffer Rasmussen
2025-09-21 06:53:11 +02:00
committed by Carlos Valente
parent a5d628af0c
commit 5716fc31cf
22 changed files with 773 additions and 49 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import {
ApiAction,
ApiActionTag,
Log,
MessageTag,
RefetchKey,
@@ -199,7 +199,7 @@ export const connectSocket = () => {
};
};
export function sendSocket<T extends MessageTag | ApiAction>(
export function sendSocket<T extends MessageTag | ApiActionTag>(
tag: T,
payload: T extends MessageTag ? Pick<WsPacketToServer & { tag: T }, 'payload'>['payload'] : unknown,
): void {