Explorar el Código

fix sdk config type

Dax Raad hace 6 meses
padre
commit
947a3e8aff
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      packages/sdk/js/src/client.ts

+ 3 - 2
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)