( patch: Partial<DesktopServerSettings>, )
| 27 | }); |
| 28 | |
| 29 | export const updateServerSettings = ( |
| 30 | patch: Partial<DesktopServerSettings>, |
| 31 | ): DesktopServerSettings => { |
| 32 | const next: DesktopServerSettings = { port: patch.port ?? getServerSettings().port }; |
| 33 | store.set("server", next); |
| 34 | return next; |
| 35 | }; |
| 36 | |
| 37 | /** |
| 38 | * Rotate the local bearer token (auth.json). The caller must restart the |
no test coverage detected