summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-21 13:00:16 -0400
committerDax Raad <[email protected]>2025-08-21 13:00:16 -0400
commit947a3e8aff91921fa22fa0cb64e18073f0a4b095 (patch)
treea4236c5fcf3a46c85dbea60dfa1ab9d48720fa24
parent9a3186317b010ec03b1680ae9249d90ea6f94356 (diff)
downloadopencode-947a3e8aff91921fa22fa0cb64e18073f0a4b095.tar.gz
opencode-947a3e8aff91921fa22fa0cb64e18073f0a4b095.zip
fix sdk config type
-rw-r--r--packages/sdk/js/src/client.ts5
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)