Socket
Socket
Sign inDemoInstall

@wdio/types

Package Overview
Dependencies
2
Maintainers
3
Versions
158
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @wdio/types

Utility package providing type information for a variety of WebdriverIO interfaces


Version published
Maintainers
3
Install size
2.16 MB
Created

Changelog

Source

v8.27.2 (2024-01-11)

:rocket: New Feature
  • wdio-sauce-service
    • #11981 feat: Implement reporting of test runs to Sauce Labs Insights (@tianfeng92)
:bug: Bug Fix
:nail_care: Polish
  • wdio-spec-reporter, wdio-types, webdriverio
:memo: Documentation
Committers: 6

Readme

Source

WebdriverIO Types

This package contains a bunch of TypeScript types for internal WebdriverIO consumption. Feel free however to use them in your TypeScript project too.

Install

To install this package from NPM run:

npm i @wdio/types

Example

The package exports the following major type bundles: Capabilities, Clients, Options, Services, Frameworks and Reporters. A lot of them are very WebdriverIO specific but you can leverage some, e.g.

import type { Capabilities } from '@wdio/types';

const w3cCaps: Capabilities.W3CCapabilities = {
    alwaysMatch: {...},
    firstMatch: [],
    // fails with "Object literal may only specify known properties, and 'invalid' does not exist in type 'W3CCapabilities'.ts(2322)"
    invalid: 42
}

For details please take a look into the individual files.


For more information on WebdriverIO see the homepage.

Keywords

FAQs

Last updated on 11 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc