Skip to content

Commit

Permalink
Docs: Typescript updates for async/sync (#8131)
Browse files Browse the repository at this point in the history
* Docs: Typescript updates for async/sync

* Update website/docs/TypeScript.md

Co-authored-by: Christian Bromann <git@bromann.dev>
  • Loading branch information
WillBrock and christian-bromann committed Mar 21, 2022
1 parent 1aa1d04 commit 8ee4326
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions website/docs/TypeScript.md
Expand Up @@ -121,7 +121,7 @@ For instance, if you decide to use the Mocha framework, you need to install `@ty
```json title="tsconfig.json"
{
"compilerOptions": {
"types": ["node", "webdriverio/sync", "@wdio/mocha-framework"]
"types": ["node", "webdriverio/async", "@wdio/mocha-framework"]
}
}
```
Expand All @@ -132,7 +132,7 @@ For instance, if you decide to use the Mocha framework, you need to install `@ty
```json title="tsconfig.json"
{
"compilerOptions": {
"types": ["node", "webdriverio/sync", "@wdio/jasmine-framework"]
"types": ["node", "webdriverio/async", "@wdio/jasmine-framework"]
}
}
```
Expand All @@ -143,7 +143,7 @@ For instance, if you decide to use the Mocha framework, you need to install `@ty
```json title="tsconfig.json"
{
"compilerOptions": {
"types": ["node", "webdriverio/sync", "@wdio/cucumber-framework"]
"types": ["node", "webdriverio/async", "@wdio/cucumber-framework"]
}
}
```
Expand All @@ -160,7 +160,7 @@ If you use services that add commands to the browser scope you also need to incl
"compilerOptions": {
"types": [
"node",
"webdriverio/sync",
"webdriverio/async",
"@wdio/mocha-framework",
"@wdio/devtools-service"
]
Expand Down Expand Up @@ -240,8 +240,8 @@ With TypeScript, it's easy to extend WebdriverIO interfaces. Add types to your [
<Tabs
defaultValue="async"
values={[
{label: 'Sync', value: 'sync'},
{label: 'Async', value: 'async'},
{label: 'Sync', value: 'sync'},
]
}>
<TabItem value="sync">
Expand Down Expand Up @@ -294,8 +294,8 @@ declare global {
<Tabs
defaultValue="async"
values={[
{label: 'Sync', value: 'sync'},
{label: 'Async', value: 'async'},
{label: 'Sync', value: 'sync'},
]
}>
<TabItem value="sync">
Expand Down Expand Up @@ -366,7 +366,7 @@ declare namespace WebdriverIO {
"strictNullChecks": true,
"types": [
"node",
"webdriverio/sync",
"webdriverio/async",
"@wdio/mocha-framework"
]
},
Expand All @@ -393,7 +393,7 @@ declare namespace WebdriverIO {
"strictNullChecks": true,
"types": [
"node",
"webdriverio/sync",
"webdriverio/async",
"@wdio/mocha-framework"
]
}
Expand Down

0 comments on commit 8ee4326

Please sign in to comment.