Registry / type-stubs / wdio-api-declaration

wdio-api-declaration

JSON →
library0.0.3jsnpmunverified

The `wdio-api-declaration` package was designed to provide API declarations for WebdriverIO, primarily to enable code editor auto-completion, particularly in IDEs like WebStorm. Released at an early version (0.0.3), it targeted very old Node.js environments (version >=0.6.0) and its usage model relied on specific 'External JavaScript library' configurations within IDEs. This package is now considered obsolete, superseded by WebdriverIO's robust native TypeScript support (introduced and significantly enhanced from WebdriverIO v5 onwards) and the officially maintained `@types/webdriverio` package. It has not received updates for many years and offers no functional value for modern WebdriverIO development. Developers should rely on WebdriverIO's built-in type definitions or the `@types` package for contemporary type inference.

npm install wdio-api-declaration
INSTALL
IMPORT
SIG · WDIO-API-DECLARATI
W
wdio-api-declaration
type-stubsjavascriptv0.0.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebDriver
// This package does not export runtime symbols. // For WebdriverIO types, use `@types/webdriverio` or rely on WebdriverIO's built-in types. // import type { WebDriver } from 'webdriverio';
This package is a type declaration *only* and does not export any runtime symbols for direct import. Its purpose was solely for IDE tooling. Attempting to import from `wdio-api-declaration` directly will result in runtime errors as it's an empty declaration package.

Demonstrates the installation of the `wdio-api-declaration` package and explains its original, now obsolete, purpose for IDE auto-completion without direct code usage. It also provides context on how modern WebdriverIO handles types.

npm install wdio-api-declaration // NOTE: This package is obsolete and its usage is not recommended for modern WebdriverIO projects. // Its original purpose was to provide IDE auto-completion by configuring it as an // 'External JavaScript library' in IDEs like WebStorm, without requiring code import. // // For current WebdriverIO projects (v7+), types are typically inferred automatically // or provided by `@types/webdriverio` and `@wdio/globals`. // // Example of how you would *actually* use WebdriverIO (with modern types): // import { remote } from 'webdriverio'; // // async function runTest() { // const browser = await remote({ // capabilities: { // browserName: 'chrome' // } // }); // // await browser.url('https://webdriver.io'); // const title = await browser.getTitle(); // console.log(`Page title: ${title}`); // // await browser.deleteSession(); // } // // runTest().catch(console.error);
Debug
Known issues
gotchaThis package (`wdio-api-declaration@0.0.3`) is severely outdated and no longer maintained. It targets extremely old Node.js versions (>=0.6.0) and an ancient WebdriverIO API.
fix
Do not use `wdio-api-declaration`. For modern WebdriverIO projects, rely on WebdriverIO's built-in TypeScript support and its `tsconfig.json` configuration, or install `@types/webdriverio` if explicit type declarations are required for specific tooling.
affects: >=0.0.1
breakingUsing this package will lead to incorrect or missing type definitions for any recent version of WebdriverIO (v5 and above). The API declarations provided are completely out of sync with current WebdriverIO interfaces and commands.
fix
Remove `wdio-api-declaration` from your project's `package.json` and `node_modules`. Ensure your `tsconfig.json` is correctly configured for WebdriverIO (e.g., including `@wdio/globals/types` in `types` array) or use `@types/webdriverio` for external type declarations.
affects: >=0.0.1
deprecatedThe functionality this package aimed to provide is now natively supported and significantly improved within WebdriverIO itself, or via standard `@types` packages for TypeScript.
fix
Migrate any legacy IDE configurations that relied on this package. Modern IDEs and development workflows automatically pick up types from `node_modules/@types` or the installed WebdriverIO packages.
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find name 'browser' or 'driver' or 'element' when using WebdriverIO with TypeScript.
Incorrect or missing WebdriverIO type configurations, potentially due to using outdated declarations like `wdio-api-declaration` or not setting up `tsconfig.json` correctly.
fix
Ensure `wdio-api-declaration` is NOT installed. Check your `tsconfig.json` and ensure it includes `types: ['node', '@wdio/globals/types']` or similar, depending on your WebdriverIO version and setup. Run `npx wdio ts-setup` for automatic `tsconfig.json` configuration if available.
Property 'url' does not exist on type 'Browser'.
Using an outdated or incompatible type declaration for the WebdriverIO `browser` object. `wdio-api-declaration` provides extremely old definitions.
fix
Remove `wdio-api-declaration`. Upgrade your WebdriverIO setup if necessary and ensure you are using the correct type definitions that ship with WebdriverIO or `@types/webdriverio`. Check your `package.json` for relevant `@wdio` packages and their versions.
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
38
OpenAI (training)
1
Resources
wdio-api-declaration — npm install wdio-api-declaration · libregistry