This is a fork of the devtools-protocol repo at r927104, corresponding to the npm package devtools-protocol@0.0.927104. The typings here have been augmented in 3 different ways:
- Typings for Promise event methods, for statements like:
await Page.loadEventFired();- Typings for shorthand callback event methods, for statements like:
Network.requestWillBeSent((params) => {
console.log(params.request.url);
});- Optional declarations on command object parameters with all-optional properties, to allow statements like:
await Network.enable();instead of:
await Network.enable({});The script that generates these typings is at scripts/protocol-dts-generator.ts and can be run using npx ts-node protocol-dts-generator.ts in the scripts/ directory.