puppeteer: fix mouse.click typing

This commit is contained in:
niris
2017-11-28 12:30:16 +08:00
parent dc0c4811d4
commit f0724c38bb

View File

@@ -58,7 +58,7 @@ export interface Mouse {
* @param y The y position.
* @param options The click options.
*/
click(x: number, y: number, options: ClickOptions): Promise<void>;
click(x: number, y: number, options?: ClickOptions): Promise<void>;
/**
* Dispatches a `mousedown` event.
* @param options The mouse press options.