diff options
| author | Brendan Allan <[email protected]> | 2026-02-19 21:14:59 +0800 |
|---|---|---|
| committer | Brendan Allan <[email protected]> | 2026-02-19 21:14:59 +0800 |
| commit | 885d71636f99074dcc87ba6527f0c9beaba5f623 (patch) | |
| tree | 2831123b41a4d514ae4823d62357f51caaffe358 /packages/app/src/context/platform.tsx | |
| parent | d07f09925fae3dd0eac245b1817ace5eee19f0aa (diff) | |
| download | opencode-885d71636f99074dcc87ba6527f0c9beaba5f623.tar.gz opencode-885d71636f99074dcc87ba6527f0c9beaba5f623.zip | |
desktop: fetch defaultServer at top level
Diffstat (limited to 'packages/app/src/context/platform.tsx')
| -rw-r--r-- | packages/app/src/context/platform.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/app/src/context/platform.tsx b/packages/app/src/context/platform.tsx index 6d4464258..86f3321e4 100644 --- a/packages/app/src/context/platform.tsx +++ b/packages/app/src/context/platform.tsx @@ -1,5 +1,5 @@ import { createSimpleContext } from "@opencode-ai/ui/context" -import { AsyncStorage, SyncStorage } from "@solid-primitives/storage" +import type { AsyncStorage, SyncStorage } from "@solid-primitives/storage" import type { Accessor } from "solid-js" type PickerPaths = string | string[] | null @@ -58,7 +58,7 @@ export type Platform = { fetch?: typeof fetch /** Get the configured default server URL (platform-specific) */ - getDefaultServerUrl?(): Promise<string | null> | string | null + getDefaultServerUrl?(): Promise<string | null> /** Set the default server URL to use on app startup (platform-specific) */ setDefaultServerUrl?(url: string | null): Promise<void> | void |
