Sitelet https://github.com/darkdread/devtools-protocol
Skip to content
 
 

Latest commit

 

History

1,052 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome!

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:

  1. Typings for Promise event methods, for statements like:
await Page.loadEventFired();
  1. Typings for shorthand callback event methods, for statements like:
Network.requestWillBeSent((params) => {
    console.log(params.request.url);
});
  1. 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.

About

Chrome DevTools Protocol

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages