mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Added type literal for clip shape
Added optional done params
This commit is contained in:
Vendored
+2
-2
@@ -95,8 +95,8 @@ declare class Nightmare {
|
||||
removeListener(event: 'prompt', cb: (msg: string, defaultValue?: string) => void): Nightmare;
|
||||
removeListener(event: 'error', cb: (msg: string, trace?: Nightmare.IStackTrace[]) => void): Nightmare;
|
||||
removeListener(event: 'timeout', cb: (msg: string) => void): Nightmare;
|
||||
screenshot(path: string): Nightmare;
|
||||
screenshot(path: string, clip: Object): Nightmare;
|
||||
screenshot(path: string, done?: (err: any) => void): Nightmare;
|
||||
screenshot(path: string, clip?: { x: number, y: number, width: number, height: number }, done?: (err: any) => void): Nightmare;
|
||||
html(path: string, saveType: string): Nightmare;
|
||||
html(path: string, saveType: 'HTMLOnly'): Nightmare;
|
||||
html(path: string, saveType: 'HTMLComplete'): Nightmare;
|
||||
|
||||
Reference in New Issue
Block a user