mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
mark Response.error() and Response.redirect() as static (#8887)
Fixes #7777
This commit is contained in:
committed by
Masahiro Wakame
parent
42da513c25
commit
99e58db462
4
whatwg-fetch/whatwg-fetch.d.ts
vendored
4
whatwg-fetch/whatwg-fetch.d.ts
vendored
@@ -59,8 +59,8 @@ declare class Body {
|
||||
}
|
||||
declare class Response extends Body {
|
||||
constructor(body?: BodyInit, init?: ResponseInit);
|
||||
error(): Response;
|
||||
redirect(url: string, status: number): Response;
|
||||
static error(): Response;
|
||||
static redirect(url: string, status: number): Response;
|
||||
type: ResponseType;
|
||||
url: string;
|
||||
status: number;
|
||||
|
||||
Reference in New Issue
Block a user