angrykoala/wendigo

PuppeteerPage.evaluateHandle types are not correct

Closed this issue · 0 comments

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