mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
puppeteer: fix mouse.click typing
This commit is contained in:
2
types/puppeteer/index.d.ts
vendored
2
types/puppeteer/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user