(input: string, state: FileState)
| 2384 | const processFileClear = (state: FileState) => Effect.succeed(Action.NextFrame({ state: updateFileState(state, "") })) |
| 2385 | |
| 2386 | const processFileInput = (input: string, state: FileState) => { |
| 2387 | if (input.length === 0) { |
| 2388 | return Effect.succeed(Action.Beep()) |
| 2389 | } |
| 2390 | const query = state.query + input |
| 2391 | return Effect.succeed(Action.NextFrame({ state: updateFileState(state, query) })) |
| 2392 | } |
| 2393 | |
| 2394 | const processSelection = Effect.fnUntraced(function*(state: FileState, options: FileOptionsReq) { |
| 2395 | if (state.files.length === 0) { |
no test coverage detected