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

This commit is contained in:
2025-03-20 11:54:00 +01:00
parent c3ca8f5761
commit bc79a439cd
3 changed files with 3 additions and 3 deletions

2
dist/router.d.ts vendored
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;
}