( field: CommandField<T>, )
| 146 | AgentDeviceSelectionOptions; |
| 147 | |
| 148 | export function requiredField<T>( |
| 149 | field: CommandField<T>, |
| 150 | ): CommandField<Exclude<T, undefined>> & { required: true } { |
| 151 | return { ...field, required: true } as CommandField<Exclude<T, undefined>> & { |
| 152 | required: true; |
| 153 | }; |
| 154 | } |
| 155 | |
| 156 | export function stringField(description?: string): CommandField<string> { |
| 157 | return optionalField(stringSchema(description), optionalString); |
no outgoing calls
no test coverage detected