Skip to content

Commit 989e549

Browse files
Fix NextApiResponse.status type signature
1 parent ce8956a commit 989e549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next-server/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export type NextApiResponse = ServerResponse & {
174174
* Send data `json` data in reponse
175175
*/
176176
json: Send
177-
status: (statusCode: number) => void
177+
status: (statusCode: number) => NextApiResponse
178178
}
179179

180180
/**

0 commit comments

Comments
 (0)