Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Nov 16, 2021
1 parent 5e08fef commit 2bb9478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/web/spec-extension/response.ts
Expand Up @@ -63,7 +63,7 @@ export class NextResponse extends Response {
return this.cookie(name, '', { expires: new Date(1), path: '/', ...opts })
}

static json(body: BodyInit | null) {
static json(body: any) {
return new NextResponse(JSON.stringify(body), {
headers: { 'content-type': 'application/json' },
})
Expand Down

0 comments on commit 2bb9478

Please sign in to comment.