chore: add export types in js-sdk (#1923)

Co-authored-by: zwingzheng <zwingzheng@tencent.com>
This commit is contained in:
zWing 2025-08-22 00:06:27 +08:00 committed by GitHub
parent bca523eb63
commit b1e584ca1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,10 @@ 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
}
import { spawn } from "child_process"
export function createOpencodeClient(config?: Config) {