devtools-protocol
devtools-protocol copied to clipboard
`Promise` versions of `on(event: ...)` type definitions?
Shouldn't there be Promise
versions of the on(event: ...)
type definitions in types/protocol-proxy-api.d.ts? For example, there should also be
loadEventFired(): Promise<Protocol.Page.LoadEventFiredEvent>;
for https://github.com/ChromeDevTools/devtools-protocol/blob/bfcd0a38fec44a7104e1b542005328f2023c4a24/types/protocol-proxy-api.d.ts#L2958
All the other non-on(event: ...)
methods return a Promise
so this inconsistency is somewhat perplexing.