(
description?: string,
options: { min?: number; max?: number } = {},
)
| 162 | } |
| 163 | |
| 164 | export function integerField( |
| 165 | description?: string, |
| 166 | options: { min?: number; max?: number } = {}, |
| 167 | ): CommandField<number> { |
| 168 | return optionalField(integerSchemaWithBounds(description, options), (record, key) => |
| 169 | optionalInteger(record, key, options), |
| 170 | ); |
| 171 | } |
| 172 | |
| 173 | export function booleanField(description?: string): CommandField<boolean> { |
| 174 | return optionalField(booleanSchema(description), optionalBoolean); |
no test coverage detected