Fixed travis build #45656.1 error

This commit is contained in:
Nishant Kyal
2017-09-21 14:21:59 +05:30
parent aea85fde8b
commit 7f8896ab61

View File

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