Skip to content

Commit

Permalink
add acceptable/possible return value in param side as well
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jan 26, 2025
1 parent af7f0f0 commit 4513759
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions lib/subcommands/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ commands.setAppearance = async function setAppearance (appearance) {
*
* @this {import('../simctl').Simctl}
* @return {Promise<string>} the contrast configuration value.
* Possible return value is 'enabled', 'disabled',
* 'unsupported' or 'unknown' with Xcode 16.2.
* @throws {Error} if the current SDK version does not support the command
* or there was an error while getting the value.
* @throws {Error} If the `udid` instance property is unset
Expand All @@ -65,6 +67,7 @@ commands.getIncreaseContrast = async function getIncreaseContrast () {
*
* @this {import('../simctl').Simctl}
* @param {string} increaseContrast valid increase constrast configuration value.
* Acceptable value is 'enabled' or 'disabled' with Xcode 16.2.
* @throws {Error} if the current SDK version does not support the command
* or the given value was invalid for the command.
* @throws {Error} If the `udid` instance property is unset
Expand All @@ -86,7 +89,12 @@ commands.setIncreaseContrast = async function setIncreaseContrast (increaseContr
* Other values: unknown, unsupported.
*
* @this {import('../simctl').Simctl}
* @return {Promise<string>} the content size value.
* @return {Promise<string>} the content size value. Possible return value is
* extra-small, small, medium, large, extra-large, extra-extra-large,
* extra-extra-extra-large, accessibility-medium, accessibility-large,
* accessibility-extra-large, accessibility-extra-extra-large,
* accessibility-extra-extra-extra-large,
* unknown or unsupported with Xcode 16.2.
* @throws {Error} if the current SDK version does not support the command
* or there was an error while getting the value.
* @throws {Error} If the `udid` instance property is unset
Expand All @@ -111,8 +119,11 @@ commands.getContentSize = async function getContentSize () {
* in the caller side.
*
* @this {import('../simctl').Simctl}
* @param {string} contentSizeAction valid content size or action value.
* The example is in the description avobe.
* @param {string} contentSizeAction valid content size or action value. Acceptable value is
* extra-small, small, medium, large, extra-large, extra-extra-large,
* extra-extra-extra-large, accessibility-medium, accessibility-large,
* accessibility-extra-large, accessibility-extra-extra-large,
* accessibility-extra-extra-extra-large with Xcode 16.2.
* @throws {Error} if the current SDK version does not support the command
* or the given value was invalid for the command.
* @throws {Error} If the `udid` instance property is unset
Expand Down

0 comments on commit 4513759

Please sign in to comment.