fix @types/puppeteer $eval type error

This commit is contained in:
zwh8800
2017-11-25 15:39:28 +08:00
parent 3289762cca
commit 9bdb3afa3b
+3 -2
View File
@@ -667,7 +667,8 @@ export interface FrameBase {
*/
$eval(
selector: string,
fn: (...args: any[]) => void
fn: (ele: ElementHandle | null, ...args: any[]) => any,
...args: any[]
): Promise<any>;
/**
@@ -680,7 +681,7 @@ export interface FrameBase {
*/
$$eval(
selector: string,
fn: (...args: any[]) => void,
fn: (eles: ElementHandle[], ...args: any[]) => any,
...args: any[]
): Promise<any>;