diff options
| author | Dax Raad <[email protected]> | 2025-08-21 13:00:16 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-21 13:00:16 -0400 |
| commit | 947a3e8aff91921fa22fa0cb64e18073f0a4b095 (patch) | |
| tree | a4236c5fcf3a46c85dbea60dfa1ab9d48720fa24 | |
| parent | 9a3186317b010ec03b1680ae9249d90ea6f94356 (diff) | |
| download | opencode-947a3e8aff91921fa22fa0cb64e18073f0a4b095.tar.gz opencode-947a3e8aff91921fa22fa0cb64e18073f0a4b095.zip | |
fix sdk config type
| -rw-r--r-- | packages/sdk/js/src/client.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/sdk/js/src/client.ts b/packages/sdk/js/src/client.ts index a5ed488e6..8346fd8a2 100644 --- a/packages/sdk/js/src/client.ts +++ b/packages/sdk/js/src/client.ts @@ -1,8 +1,9 @@ +export * from "./gen/types.gen.js" +export { type Config as OpencodeClientConfig, OpencodeClient } + import { createClient } from "./gen/client/client.js" import { type Config } from "./gen/client/types.js" import { OpencodeClient } from "./gen/sdk.gen.js" -export * from "./gen/types.gen.js" -export { type Config, OpencodeClient } export function createOpencodeClient(config?: Config) { const client = createClient(config) |
