Skip to content

Commit 2c3ac34

Browse files
authored
types: optional status in Response.redirect (#4591)
1 parent 7321451 commit 2c3ac34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/fetch.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,5 @@ export declare class Response extends BodyMixin {
207207

208208
static error (): Response
209209
static json (data: any, init?: ResponseInit): Response
210-
static redirect (url: string | URL, status: ResponseRedirectStatus): Response
210+
static redirect (url: string | URL, status?: ResponseRedirectStatus): Response
211211
}

0 commit comments

Comments
 (0)