Fix static declarations on Response class

This commit is contained in:
Todd Lucas
2016-08-30 10:56:41 -07:00
parent 3a59692d1b
commit bfc32a918e

View File

@@ -129,9 +129,6 @@ declare class Request extends Body implements IRequest {
}
interface IResponse extends IBody {
redirect(url: string, status?: number): IResponse;
error(): IResponse;
type: ResponseType;
url: string;
@@ -159,8 +156,8 @@ interface ResponseInit {
declare class Response extends Body implements IResponse {
constructor(body?: ResponseBodyInit, init?: ResponseInit);
redirect(url: string, status?: number): IResponse;
error(): IResponse;
static redirect(url: string, status?: number): IResponse;
static error(): IResponse;
type: ResponseType