PuppeteerPage.evaluateHandle types are not correct
Closed this issue · 0 comments
angrykoala commented
Currently, due to an update in @types/puppeteer
, PuppeteerPage.evaluateHandle method types only receive a callback, instead of the expected string | callback
public evaluateHandle(cb: ((...args: any[]) => any), ...args: Array<SerializableOrJSHandle>): Promise<JSHandle> {
The parameter cb should be typed as string | cb: ((...args: any[]) => any)
after puppeteer's types are updated:
Discussion at puppeteer/puppeteer#4763
This is a minor issue, as it doesn't affect compiled code or exported types