From 7f8896ab614c1ec61dc8ae08b50f2e2cb0a64341 Mon Sep 17 00:00:00 2001 From: Nishant Kyal Date: Thu, 21 Sep 2017 14:21:59 +0530 Subject: [PATCH] Fixed travis build #45656.1 error --- types/nightmare/index.d.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index f61c23c987..eeb13f86db 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -31,7 +31,7 @@ declare class Nightmare { select(seletor: string, option: string): Nightmare; upload(selector: string, path: string): Nightmare; download(path:string): Nightmare; - download(action: Nightmare.IDownloadActions): Nightmare; + download(action: "cancel" | "continue"): Nightmare; scrollTo(top: number, left: number): Nightmare; viewport(width: number, height: number): Nightmare; inject(type: string, file: string): Nightmare; @@ -178,10 +178,6 @@ declare namespace Nightmare { line: number; function?: string; } - export enum IDownloadActions { - cancel = "cancel", - continue = "continue" - } export class Cookies { get(): [Nightmare.ICookie]; get(name: string): Nightmare.ICookie;