mark Response.error() and Response.redirect() as static (#8887)

Fixes #7777
This commit is contained in:
Romke van der Meulen
2016-04-12 15:36:44 +02:00
committed by Masahiro Wakame
parent 42da513c25
commit 99e58db462

View File

@@ -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;