( patch: Partial<DesktopServerSettings>, )
| 37 | }); |
| 38 | |
| 39 | export const updateServerSettings = ( |
| 40 | patch: Partial<DesktopServerSettings>, |
| 41 | ): DesktopServerSettings => { |
| 42 | const next: DesktopServerSettings = { port: patch.port ?? getServerSettings().port }; |
| 43 | store.set("server", next); |
| 44 | return next; |
| 45 | }; |
| 46 | |
| 47 | /** |
| 48 | * Rotate the local bearer token (auth.json). The caller must restart the |
no test coverage detected