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

This commit is contained in:
Flummi committed 2025-03-20 11:54:00 +01:00
1 parent c3ca8f5761
commit bc79a439cd
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: string, code?: number) => void;
json: (body: JSON, code?: number) => void;
html: (body: string, code?: number) => void;
redirect: (target: string, code?: number) => void;
}