Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-sdk-6882-setcustomtags-type.md
Comment thread
Bhargavi-BS marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wdio/browserstack-service": patch
---

Declare `browser.setCustomTags(key, value)` on the global `WebdriverIO.Browser` interface so TypeScript consumers can call it without a `TS2339` compile error. The command already worked at runtime; the declaration previously lived only in `src/@types/bstack-service-types.d.ts`, which is never emitted into the shipped `build/index.d.ts`. No runtime change.
3 changes: 2 additions & 1 deletion packages/browserstack-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ declare global {
getAccessibilityResults: () => Promise<Array<Record<string, unknown>>>,
performScan: () => Promise<Record<string, unknown> | undefined>,
startA11yScanning: () => Promise<void>,
stopA11yScanning: () => Promise<void>
stopA11yScanning: () => Promise<void>,
setCustomTags: (key: string, value: string) => Promise<void>
}
}
interface State {
Expand Down
Loading