(input: string, state: FileState)
| 2585 | const processFileClear = (state: FileState) => Effect.succeed(Action.NextFrame({ state: updateFileState(state, "") })) |
| 2586 | |
| 2587 | const processFileInput = (input: string, state: FileState) => { |
| 2588 | if (input.length === 0) { |
| 2589 | return Effect.succeed(Action.Beep()) |
| 2590 | } |
| 2591 | const query = state.query + input |
| 2592 | return Effect.succeed(Action.NextFrame({ state: updateFileState(state, query) })) |
| 2593 | } |
| 2594 | |
| 2595 | const processSelection = Effect.fnUntraced(function*(state: FileState, options: FileOptionsReq) { |
| 2596 | if (state.files.length === 0) { |
no test coverage detected