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