mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
fix @types/puppeteer $eval type error
This commit is contained in:
Vendored
+3
-2
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user