Просмотр исходного кода

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

Co-authored-by: zwingzheng <zwingzheng@tencent.com>
zWing 1 год назад
Родитель
Сommit
b1e584ca1d
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      packages/sdk/js/src/index.ts

+ 4 - 0
packages/sdk/js/src/index.ts

@@ -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) {