Unified · Split
| @@ -50,10 +50,7 @@ type PromptDraftAction = · 49 unmodified lines | ||
| 50 | 50 | | { type: "password.set"; password: string } |
| 51 | 51 | | { type: "error.set"; error: string | null }; |
| 52 | 52 | |
| 53 | −function promptDraftReducer( | |
| 54 | − state: PromptDraftState, | |
| 55 | − action: PromptDraftAction, | |
| 56 | −): PromptDraftState { | |
| 53 | +function promptDraftReducer(state: PromptDraftState, action: PromptDraftAction): PromptDraftState { | |
| 57 | 54 | switch (action.type) { |
| 58 | 55 | case "prompt.reset": |
| 59 | 56 | return { |