Max van der Velde
Max van der Velde
DDeno
Created by Max van der Velde on 7/11/2023 in #help
Deno seems to assume wrong return type (Puppeteer)
According to the docs it should be this
14 replies
DDeno
Created by Max van der Velde on 7/11/2023 in #help
Deno seems to assume wrong return type (Puppeteer)
Yes exactly
14 replies
DDeno
Created by Max van der Velde on 7/11/2023 in #help
Deno seems to assume wrong return type (Puppeteer)
but $eval should return : Promise<Awaited<ReturnType<Func>>>
14 replies
DDeno
Created by Max van der Velde on 7/11/2023 in #help
Deno seems to assume wrong return type (Puppeteer)
No I mean specifically the ElementHandle<any> part. Undefined makes sense
14 replies
DDeno
Created by Max van der Velde on 7/11/2023 in #help
Deno seems to assume wrong return type (Puppeteer)
Still a bit confused as to why TypeScript says $eval returns ElementHandle<any> | undefined
14 replies
DDeno
Created by Max van der Velde on 7/11/2023 in #help
Deno seems to assume wrong return type (Puppeteer)
This seems to work indeed, thanks
14 replies