feat: update json method in Response interface to accept any type

This commit is contained in:
Flummi committed 2025-03-20 11:56:11 +01:00
1 parent bc79a439cd
commit 5c8a4c1edc
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ export interface Response extends ServerResponse {
body: string;
}) => void;
status: (code: number) => Response;
json: (body: JSON, code?: number) => void;
json: (body: any, code?: number) => void;
html: (body: string, code?: number) => void;
redirect: (target: string, code?: number) => void;
}