3.75 GB
76,734 files
Updated about 1 month ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| out | 12 items | ||
| src | 6 items | ||
| CHANGELOG.md | 35.3 kB xet | f1056ebb | |
| LICENSE | 11.3 kB xet | a0392df7 | |
| README.md | 1.08 kB xet | 41c08f4d | |
| package.json | 754 Bytes xet | 276eac7e |
webdriver-bidi-protocol
This repository contains TypeScript types conforming to the WebDriver BiDi specification. It also supports WebDriver BiDi extension modules defined in other specifications:
Installation
npm install webdriver-bidi-protocol
Usage
In your TypeScript client implementation, you can now import WebDriver BiDi types:
import {Commands} from 'webdriver-bidi-protocol';
async function sendCommand<T extends keyof Commands>(
method: T,
params: Commands[T]['params']
): {result: Commands[T]['returnType']} {
// Implementation for sending the data using WebSockets.
}
// Now TypeScript validates that the params match the spec for 'browsingContext.print'.
await sendCommand('browsingContext.print', {context: 'xxx'});
Versioning
This package patch version will be incremented whenever there are specification updates.
- Total size
- 3.75 GB
- Files
- 76,734
- Last updated
- Sep 11
- Pre-warmed CDN
- US EU US EU