You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was glad to find type definitions for the protocol, but I don't see a way to use them with puppeteer's CDPSession.send.
Unless I'm missing something (which is entirely possible), it would be nice to have a simple helper that takes a (method: string, params?: object | undefined): Promise<any> function (as implemented by various libraries) and returns a type-checked wrapper.
I was glad to find type definitions for the protocol, but I don't see a way to use them with puppeteer's
CDPSession.send
.Unless I'm missing something (which is entirely possible), it would be nice to have a simple helper that takes a
(method: string, params?: object | undefined): Promise<any>
function (as implemented by various libraries) and returns a type-checked wrapper.See also puppeteer/puppeteer#2758
The text was updated successfully, but these errors were encountered: