Skip to content

Commit

Permalink
chore(types): export constraints and opts types
Browse files Browse the repository at this point in the history
  • Loading branch information
kkb912002 authored Jul 17, 2024
1 parent c1c4636 commit 50cbe48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/desired-caps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const desiredCapConstraints = {
const desiredCapConstraints = /** @type {const} */ ({
// https://github.com/microsoft/WinAppDriver/blob/master/Docs/AuthoringTestScripts.md#supported-capabilities
platformName: {
presence: true,
Expand Down Expand Up @@ -41,7 +41,7 @@ const desiredCapConstraints = {
postrun: {
isObject: true
}
};
});

export { desiredCapConstraints };
export default desiredCapConstraints;
5 changes: 5 additions & 0 deletions lib/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,8 @@ class WindowsDriver extends BaseDriver {

export { WindowsDriver };
export default WindowsDriver;

/**
* @typedef {typeof desiredCapConstraints} WindowsDriverConstraints
* @typedef {import('@appium/types').DriverOpts<WindowsDriverConstraints>} WindowsDriverOpts
*/

0 comments on commit 50cbe48

Please sign in to comment.