| 14 | } |
| 15 | |
| 16 | export interface Todo { |
| 17 | id: number |
| 18 | text: string |
| 19 | } |
| 20 | export type TodoAction = { type: class="st">'ADD_TODO'; text: string } |
| 21 | |
| 22 | export function todos(state: Todo[] = [], action: TodoAction): Todo[] { |
nothing calls this directly
no outgoing calls
no test coverage detected