(context: unknown[] = [])
| 158 | |
| 159 | const buildFromUserInput = async (context: unknown[] = []): Promise<T[] | CancelAction> => { |
| 160 | const retVal: T[] = [] |
| 161 | |
| 162 | if (await editList(retVal, context) === finishAction) { |
| 163 | return retVal |
| 164 | } |
| 165 | |
| 166 | return cancelAction |
| 167 | } |
| 168 | |
| 169 | const summarizeForEdit = options?.summarizeForEdit |
| 170 | ?? ((value: T[]) => clipToMaximum(value.map(item => itemDef.summarizeForEdit(item)).join(', '), maxItemValueLength)) |
| 171 |
nothing calls this directly
no test coverage detected