Skip to content

Commit ebe429f

Browse files
authored
fix: Add TypeScript definitions for Response.redirect() and Response.json() (#512)
1 parent edbb470 commit ebe429f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/globals.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,8 @@ declare var Response: {
11111111
prototype: Response;
11121112
new(body?: BodyInit | null, init?: ResponseInit): Response;
11131113
// error(): Response;
1114-
// redirect(url: string | URL, status?: number): Response;
1114+
redirect(url: string | URL, status?: number): Response;
1115+
json(data: any, init?: ResponseInit): Response;
11151116
};
11161117

11171118
/**

0 commit comments

Comments
 (0)