feat: update json method in Response interface to accept JSON type
This commit is contained in:
2
dist/router.d.ts
vendored
2
dist/router.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user