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
While I can use TypeScript to type-check method parameters and response objects, I cannot actually ensure that the method I am calling exists, let alone that the parameters and response match what I am trying to call.
I also found that the file node_modules/devtools-protocol/types/protocol-proxy-api.d.ts does contain the individual methods, albeit in a slightly different manner.
Feel free to close this issue if it's not worth implementing this.
While I can use TypeScript to type-check method parameters and response objects, I cannot actually ensure that the method I am calling exists, let alone that the parameters and response match what I am trying to call.
Consider this (simplified) function:
I can invoke it with
But I could easily pass
Runtime.foo
instead ofRuntime.evaluate
and it'd still pass.What I think would be required is:
The text was updated successfully, but these errors were encountered: