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-declarationVerified import paths — ran on the pinned version, not inferred.
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.
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.
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.
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.
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.
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.
No dependency data recorded yet.