Function
optionalIntegerInput
(
message: string,
options?: IntegerInputOptions<number | undefined>,
)
Source from the content-addressed store, hash-verified
| 131 | * integer or undefined. |
| 132 | */ |
| 133 | export 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 |