feat: update json method in Response interface to accept any type
This commit is contained in:
1 parent
bc79a439cd
commit
5c8a4c1edc
3 files changed
+3
-3
No files matched your search
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user