(original: T[], context: unknown[] = [])
| 171 | |
| 172 | const updateFromUserInput = async (original: T[], context: unknown[] = []): Promise<T[] | CancelAction> => { |
| 173 | const updated = [...original] |
| 174 | |
| 175 | if (await editList(updated, context) === finishAction) { |
| 176 | return updated |
| 177 | } |
| 178 | |
| 179 | return cancelAction |
| 180 | } |
| 181 | |
| 182 | return { name, buildFromUserInput, summarizeForEdit, updateFromUserInput } |
| 183 | } |
| 184 |
nothing calls this directly
no test coverage detected