feat: annotated client routes

This commit is contained in:
DecDuck
2025-08-10 15:51:10 +10:00
parent 824b4e708b
commit 7c234067a5
31 changed files with 479 additions and 389 deletions

View File

@ -16,9 +16,9 @@ type ClientUtils<R> = {
const NONCE_LENIENCE = 30_000;
type ClientEventHandlerRequest<T> = {
body: T;
query: { [key: string]: string | string[] };
type ClientEventHandlerRequest<T, Q = {[key: string]: any }> = {
body?: T;
query?: Q;
};
interface ClientEventHandler<