MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / optionalIntegerInput

Function optionalIntegerInput

src/lib/user-query.ts:133–137  ·  view source on GitHub ↗
(
		message: string,
		options?: IntegerInputOptions<number | undefined>,
)

Source from the content-addressed store, hash-verified

131 * integer or undefined.
132 */
133export const optionalIntegerInput = async (
134 message: string,
135 options?: IntegerInputOptions<number | undefined>,
136): Promise<number | undefined> =>
137 await internalIntegerInput(message, { ...options, required: false })
138
139/**
140 * Simple wrapper around querying a user for a string. The return value will always be a string

Callers 6

getInputFromUserFunction · 0.85
promptAndAddAttributeFunction · 0.85
buildFromUserInputFunction · 0.85
updateFromUserInputFunction · 0.85
getValidateFunctionFunction · 0.85
user-query.test.tsFile · 0.85

Calls 1

internalIntegerInputFunction · 0.85

Tested by 1

getValidateFunctionFunction · 0.68