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;